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(),
afdSignaling: (json['afdSignaling'] as String?)?.toAfdSignaling(),
bitrate: json['bitrate'] as int?,
bufFillPct: json['bufFillPct'] as int?,
bufSize: json['bufSize'] as int?,
colorMetadata: (json['colorMetadata'] as String?)?.toH264ColorMetadata(),
colorSpaceSettings: json['colorSpaceSettings'] != null
? H264ColorSpaceSettings.fromJson(
json['colorSpaceSettings'] as Map<String, dynamic>)
: null,
entropyEncoding:
(json['entropyEncoding'] as String?)?.toH264EntropyEncoding(),
filterSettings: json['filterSettings'] != null
? H264FilterSettings.fromJson(
json['filterSettings'] as Map<String, dynamic>)
: null,
fixedAfd: (json['fixedAfd'] as String?)?.toFixedAfd(),
flickerAq: (json['flickerAq'] as String?)?.toH264FlickerAq(),
forceFieldPictures:
(json['forceFieldPictures'] as String?)?.toH264ForceFieldPictures(),
framerateControl:
(json['framerateControl'] as String?)?.toH264FramerateControl(),
framerateDenominator: json['framerateDenominator'] as int?,
framerateNumerator: json['framerateNumerator'] as int?,
gopBReference: (json['gopBReference'] as String?)?.toH264GopBReference(),
gopClosedCadence: json['gopClosedCadence'] as int?,
gopNumBFrames: json['gopNumBFrames'] as int?,
gopSize: json['gopSize'] as double?,
gopSizeUnits: (json['gopSizeUnits'] as String?)?.toH264GopSizeUnits(),
level: (json['level'] as String?)?.toH264Level(),
lookAheadRateControl: (json['lookAheadRateControl'] as String?)
?.toH264LookAheadRateControl(),
maxBitrate: json['maxBitrate'] as int?,
minIInterval: json['minIInterval'] as int?,
numRefFrames: json['numRefFrames'] as int?,
parControl: (json['parControl'] as String?)?.toH264ParControl(),
parDenominator: json['parDenominator'] as int?,
parNumerator: json['parNumerator'] as int?,
profile: (json['profile'] as String?)?.toH264Profile(),
qualityLevel: (json['qualityLevel'] as String?)?.toH264QualityLevel(),
qvbrQualityLevel: json['qvbrQualityLevel'] as int?,
rateControlMode:
(json['rateControlMode'] as String?)?.toH264RateControlMode(),
scanType: (json['scanType'] as String?)?.toH264ScanType(),
sceneChangeDetect:
(json['sceneChangeDetect'] as String?)?.toH264SceneChangeDetect(),
slices: json['slices'] as int?,
softness: json['softness'] as int?,
spatialAq: (json['spatialAq'] as String?)?.toH264SpatialAq(),
subgopLength: (json['subgopLength'] as String?)?.toH264SubGopLength(),
syntax: (json['syntax'] as String?)?.toH264Syntax(),
temporalAq: (json['temporalAq'] as String?)?.toH264TemporalAq(),
timecodeInsertion: (json['timecodeInsertion'] as String?)
?.toH264TimecodeInsertionBehavior(),
);
}