toH265CodecProfile method

H265CodecProfile toH265CodecProfile()

Implementation

H265CodecProfile toH265CodecProfile() {
  switch (this) {
    case 'MAIN_MAIN':
      return H265CodecProfile.mainMain;
    case 'MAIN_HIGH':
      return H265CodecProfile.mainHigh;
    case 'MAIN10_MAIN':
      return H265CodecProfile.main10Main;
    case 'MAIN10_HIGH':
      return H265CodecProfile.main10High;
    case 'MAIN_422_8BIT_MAIN':
      return H265CodecProfile.main_422_8bitMain;
    case 'MAIN_422_8BIT_HIGH':
      return H265CodecProfile.main_422_8bitHigh;
    case 'MAIN_422_10BIT_MAIN':
      return H265CodecProfile.main_422_10bitMain;
    case 'MAIN_422_10BIT_HIGH':
      return H265CodecProfile.main_422_10bitHigh;
  }
  throw Exception('$this is not known in enum H265CodecProfile');
}