toH264CodecLevel method

H264CodecLevel toH264CodecLevel()

Implementation

H264CodecLevel toH264CodecLevel() {
  switch (this) {
    case 'AUTO':
      return H264CodecLevel.auto;
    case 'LEVEL_1':
      return H264CodecLevel.level_1;
    case 'LEVEL_1_1':
      return H264CodecLevel.level_1_1;
    case 'LEVEL_1_2':
      return H264CodecLevel.level_1_2;
    case 'LEVEL_1_3':
      return H264CodecLevel.level_1_3;
    case 'LEVEL_2':
      return H264CodecLevel.level_2;
    case 'LEVEL_2_1':
      return H264CodecLevel.level_2_1;
    case 'LEVEL_2_2':
      return H264CodecLevel.level_2_2;
    case 'LEVEL_3':
      return H264CodecLevel.level_3;
    case 'LEVEL_3_1':
      return H264CodecLevel.level_3_1;
    case 'LEVEL_3_2':
      return H264CodecLevel.level_3_2;
    case 'LEVEL_4':
      return H264CodecLevel.level_4;
    case 'LEVEL_4_1':
      return H264CodecLevel.level_4_1;
    case 'LEVEL_4_2':
      return H264CodecLevel.level_4_2;
    case 'LEVEL_5':
      return H264CodecLevel.level_5;
    case 'LEVEL_5_1':
      return H264CodecLevel.level_5_1;
    case 'LEVEL_5_2':
      return H264CodecLevel.level_5_2;
  }
  throw Exception('$this is not known in enum H264CodecLevel');
}