toMpeg2DisplayRatio method

Mpeg2DisplayRatio toMpeg2DisplayRatio()

Implementation

Mpeg2DisplayRatio toMpeg2DisplayRatio() {
  switch (this) {
    case 'DISPLAYRATIO16X9':
      return Mpeg2DisplayRatio.displayratio16x9;
    case 'DISPLAYRATIO4X3':
      return Mpeg2DisplayRatio.displayratio4x3;
  }
  throw Exception('$this is not known in enum Mpeg2DisplayRatio');
}