H265Settings.fromJson constructor
H265Settings.fromJson(
- Map<String, dynamic> json
)
Implementation
factory H265Settings.fromJson(Map<String, dynamic> json) {
return H265Settings(
framerateDenominator: json['framerateDenominator'] as int,
framerateNumerator: json['framerateNumerator'] as int,
adaptiveQuantization: (json['adaptiveQuantization'] as String?)
?.toH265AdaptiveQuantization(),
afdSignaling: (json['afdSignaling'] as String?)?.toAfdSignaling(),
alternativeTransferFunction:
(json['alternativeTransferFunction'] as String?)
?.toH265AlternativeTransferFunction(),
bitrate: json['bitrate'] as int?,
bufSize: json['bufSize'] as int?,
colorMetadata: (json['colorMetadata'] as String?)?.toH265ColorMetadata(),
colorSpaceSettings: json['colorSpaceSettings'] != null
? H265ColorSpaceSettings.fromJson(
json['colorSpaceSettings'] as Map<String, dynamic>)
: null,
filterSettings: json['filterSettings'] != null
? H265FilterSettings.fromJson(
json['filterSettings'] as Map<String, dynamic>)
: null,
fixedAfd: (json['fixedAfd'] as String?)?.toFixedAfd(),
flickerAq: (json['flickerAq'] as String?)?.toH265FlickerAq(),
gopClosedCadence: json['gopClosedCadence'] as int?,
gopSize: json['gopSize'] as double?,
gopSizeUnits: (json['gopSizeUnits'] as String?)?.toH265GopSizeUnits(),
level: (json['level'] as String?)?.toH265Level(),
lookAheadRateControl: (json['lookAheadRateControl'] as String?)
?.toH265LookAheadRateControl(),
maxBitrate: json['maxBitrate'] as int?,
minIInterval: json['minIInterval'] as int?,
parDenominator: json['parDenominator'] as int?,
parNumerator: json['parNumerator'] as int?,
profile: (json['profile'] as String?)?.toH265Profile(),
qvbrQualityLevel: json['qvbrQualityLevel'] as int?,
rateControlMode:
(json['rateControlMode'] as String?)?.toH265RateControlMode(),
scanType: (json['scanType'] as String?)?.toH265ScanType(),
sceneChangeDetect:
(json['sceneChangeDetect'] as String?)?.toH265SceneChangeDetect(),
slices: json['slices'] as int?,
tier: (json['tier'] as String?)?.toH265Tier(),
timecodeInsertion: (json['timecodeInsertion'] as String?)
?.toH265TimecodeInsertionBehavior(),
);
}