Av1Settings.fromJson constructor
Av1Settings.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Av1Settings.fromJson(Map<String, dynamic> json) {
return Av1Settings(
adaptiveQuantization: (json['adaptiveQuantization'] as String?)
?.toAv1AdaptiveQuantization(),
framerateControl:
(json['framerateControl'] as String?)?.toAv1FramerateControl(),
framerateConversionAlgorithm:
(json['framerateConversionAlgorithm'] as String?)
?.toAv1FramerateConversionAlgorithm(),
framerateDenominator: json['framerateDenominator'] as int?,
framerateNumerator: json['framerateNumerator'] as int?,
gopSize: json['gopSize'] as double?,
maxBitrate: json['maxBitrate'] as int?,
numberBFramesBetweenReferenceFrames:
json['numberBFramesBetweenReferenceFrames'] as int?,
qvbrSettings: json['qvbrSettings'] != null
? Av1QvbrSettings.fromJson(
json['qvbrSettings'] as Map<String, dynamic>)
: null,
rateControlMode:
(json['rateControlMode'] as String?)?.toAv1RateControlMode(),
slices: json['slices'] as int?,
spatialAdaptiveQuantization:
(json['spatialAdaptiveQuantization'] as String?)
?.toAv1SpatialAdaptiveQuantization(),
);
}