toH265CodecLevel method
Implementation
H265CodecLevel toH265CodecLevel() {
switch (this) {
case 'AUTO':
return H265CodecLevel.auto;
case 'LEVEL_1':
return H265CodecLevel.level_1;
case 'LEVEL_2':
return H265CodecLevel.level_2;
case 'LEVEL_2_1':
return H265CodecLevel.level_2_1;
case 'LEVEL_3':
return H265CodecLevel.level_3;
case 'LEVEL_3_1':
return H265CodecLevel.level_3_1;
case 'LEVEL_4':
return H265CodecLevel.level_4;
case 'LEVEL_4_1':
return H265CodecLevel.level_4_1;
case 'LEVEL_5':
return H265CodecLevel.level_5;
case 'LEVEL_5_1':
return H265CodecLevel.level_5_1;
case 'LEVEL_5_2':
return H265CodecLevel.level_5_2;
case 'LEVEL_6':
return H265CodecLevel.level_6;
case 'LEVEL_6_1':
return H265CodecLevel.level_6_1;
case 'LEVEL_6_2':
return H265CodecLevel.level_6_2;
}
throw Exception('$this is not known in enum H265CodecLevel');
}