Mpeg2Settings.fromJson constructor
Mpeg2Settings.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Mpeg2Settings.fromJson(Map<String, dynamic> json) {
return Mpeg2Settings(
adaptiveQuantization: (json['adaptiveQuantization'] as String?)
?.toMpeg2AdaptiveQuantization(),
bitrate: json['bitrate'] as int?,
codecLevel: (json['codecLevel'] as String?)?.toMpeg2CodecLevel(),
codecProfile: (json['codecProfile'] as String?)?.toMpeg2CodecProfile(),
dynamicSubGop: (json['dynamicSubGop'] as String?)?.toMpeg2DynamicSubGop(),
framerateControl:
(json['framerateControl'] as String?)?.toMpeg2FramerateControl(),
framerateConversionAlgorithm:
(json['framerateConversionAlgorithm'] as String?)
?.toMpeg2FramerateConversionAlgorithm(),
framerateDenominator: json['framerateDenominator'] as int?,
framerateNumerator: json['framerateNumerator'] as int?,
gopClosedCadence: json['gopClosedCadence'] as int?,
gopSize: json['gopSize'] as double?,
gopSizeUnits: (json['gopSizeUnits'] as String?)?.toMpeg2GopSizeUnits(),
hrdBufferInitialFillPercentage:
json['hrdBufferInitialFillPercentage'] as int?,
hrdBufferSize: json['hrdBufferSize'] as int?,
interlaceMode: (json['interlaceMode'] as String?)?.toMpeg2InterlaceMode(),
intraDcPrecision:
(json['intraDcPrecision'] as String?)?.toMpeg2IntraDcPrecision(),
maxBitrate: json['maxBitrate'] as int?,
minIInterval: json['minIInterval'] as int?,
numberBFramesBetweenReferenceFrames:
json['numberBFramesBetweenReferenceFrames'] as int?,
parControl: (json['parControl'] as String?)?.toMpeg2ParControl(),
parDenominator: json['parDenominator'] as int?,
parNumerator: json['parNumerator'] as int?,
qualityTuningLevel:
(json['qualityTuningLevel'] as String?)?.toMpeg2QualityTuningLevel(),
rateControlMode:
(json['rateControlMode'] as String?)?.toMpeg2RateControlMode(),
sceneChangeDetect:
(json['sceneChangeDetect'] as String?)?.toMpeg2SceneChangeDetect(),
slowPal: (json['slowPal'] as String?)?.toMpeg2SlowPal(),
softness: json['softness'] as int?,
spatialAdaptiveQuantization:
(json['spatialAdaptiveQuantization'] as String?)
?.toMpeg2SpatialAdaptiveQuantization(),
syntax: (json['syntax'] as String?)?.toMpeg2Syntax(),
telecine: (json['telecine'] as String?)?.toMpeg2Telecine(),
temporalAdaptiveQuantization:
(json['temporalAdaptiveQuantization'] as String?)
?.toMpeg2TemporalAdaptiveQuantization(),
);
}