H264Settings.fromJson constructor
H264Settings.fromJson(
- Map<String, dynamic> json
)
Implementation
factory H264Settings.fromJson(Map<String, dynamic> json) {
return H264Settings(
adaptiveQuantization: (json['adaptiveQuantization'] as String?)
?.toH264AdaptiveQuantization(),
bitrate: json['bitrate'] as int?,
codecLevel: (json['codecLevel'] as String?)?.toH264CodecLevel(),
codecProfile: (json['codecProfile'] as String?)?.toH264CodecProfile(),
dynamicSubGop: (json['dynamicSubGop'] as String?)?.toH264DynamicSubGop(),
entropyEncoding:
(json['entropyEncoding'] as String?)?.toH264EntropyEncoding(),
fieldEncoding: (json['fieldEncoding'] as String?)?.toH264FieldEncoding(),
flickerAdaptiveQuantization:
(json['flickerAdaptiveQuantization'] as String?)
?.toH264FlickerAdaptiveQuantization(),
framerateControl:
(json['framerateControl'] as String?)?.toH264FramerateControl(),
framerateConversionAlgorithm:
(json['framerateConversionAlgorithm'] as String?)
?.toH264FramerateConversionAlgorithm(),
framerateDenominator: json['framerateDenominator'] as int?,
framerateNumerator: json['framerateNumerator'] as int?,
gopBReference: (json['gopBReference'] as String?)?.toH264GopBReference(),
gopClosedCadence: json['gopClosedCadence'] as int?,
gopSize: json['gopSize'] as double?,
gopSizeUnits: (json['gopSizeUnits'] as String?)?.toH264GopSizeUnits(),
hrdBufferInitialFillPercentage:
json['hrdBufferInitialFillPercentage'] as int?,
hrdBufferSize: json['hrdBufferSize'] as int?,
interlaceMode: (json['interlaceMode'] as String?)?.toH264InterlaceMode(),
maxBitrate: json['maxBitrate'] as int?,
minIInterval: json['minIInterval'] as int?,
numberBFramesBetweenReferenceFrames:
json['numberBFramesBetweenReferenceFrames'] as int?,
numberReferenceFrames: json['numberReferenceFrames'] as int?,
parControl: (json['parControl'] as String?)?.toH264ParControl(),
parDenominator: json['parDenominator'] as int?,
parNumerator: json['parNumerator'] as int?,
qualityTuningLevel:
(json['qualityTuningLevel'] as String?)?.toH264QualityTuningLevel(),
qvbrSettings: json['qvbrSettings'] != null
? H264QvbrSettings.fromJson(
json['qvbrSettings'] as Map<String, dynamic>)
: null,
rateControlMode:
(json['rateControlMode'] as String?)?.toH264RateControlMode(),
repeatPps: (json['repeatPps'] as String?)?.toH264RepeatPps(),
sceneChangeDetect:
(json['sceneChangeDetect'] as String?)?.toH264SceneChangeDetect(),
slices: json['slices'] as int?,
slowPal: (json['slowPal'] as String?)?.toH264SlowPal(),
softness: json['softness'] as int?,
spatialAdaptiveQuantization:
(json['spatialAdaptiveQuantization'] as String?)
?.toH264SpatialAdaptiveQuantization(),
syntax: (json['syntax'] as String?)?.toH264Syntax(),
telecine: (json['telecine'] as String?)?.toH264Telecine(),
temporalAdaptiveQuantization:
(json['temporalAdaptiveQuantization'] as String?)
?.toH264TemporalAdaptiveQuantization(),
unregisteredSeiTimecode: (json['unregisteredSeiTimecode'] as String?)
?.toH264UnregisteredSeiTimecode(),
);
}