toMpeg2CodecLevel method

Mpeg2CodecLevel toMpeg2CodecLevel()

Implementation

Mpeg2CodecLevel toMpeg2CodecLevel() {
  switch (this) {
    case 'AUTO':
      return Mpeg2CodecLevel.auto;
    case 'LOW':
      return Mpeg2CodecLevel.low;
    case 'MAIN':
      return Mpeg2CodecLevel.main;
    case 'HIGH1440':
      return Mpeg2CodecLevel.high1440;
    case 'HIGH':
      return Mpeg2CodecLevel.high;
  }
  throw Exception('$this is not known in enum Mpeg2CodecLevel');
}