toAvcIntraInterlaceMode method

AvcIntraInterlaceMode toAvcIntraInterlaceMode()

Implementation

AvcIntraInterlaceMode toAvcIntraInterlaceMode() {
  switch (this) {
    case 'PROGRESSIVE':
      return AvcIntraInterlaceMode.progressive;
    case 'TOP_FIELD':
      return AvcIntraInterlaceMode.topField;
    case 'BOTTOM_FIELD':
      return AvcIntraInterlaceMode.bottomField;
    case 'FOLLOW_TOP_FIELD':
      return AvcIntraInterlaceMode.followTopField;
    case 'FOLLOW_BOTTOM_FIELD':
      return AvcIntraInterlaceMode.followBottomField;
  }
  throw Exception('$this is not known in enum AvcIntraInterlaceMode');
}