H265Settings.fromJson constructor

H265Settings.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory H265Settings.fromJson(Map<String, dynamic> json) {
  return H265Settings(
    adaptiveQuantization: (json['adaptiveQuantization'] as String?)
        ?.toH265AdaptiveQuantization(),
    alternateTransferFunctionSei:
        (json['alternateTransferFunctionSei'] as String?)
            ?.toH265AlternateTransferFunctionSei(),
    bitrate: json['bitrate'] as int?,
    codecLevel: (json['codecLevel'] as String?)?.toH265CodecLevel(),
    codecProfile: (json['codecProfile'] as String?)?.toH265CodecProfile(),
    dynamicSubGop: (json['dynamicSubGop'] as String?)?.toH265DynamicSubGop(),
    flickerAdaptiveQuantization:
        (json['flickerAdaptiveQuantization'] as String?)
            ?.toH265FlickerAdaptiveQuantization(),
    framerateControl:
        (json['framerateControl'] as String?)?.toH265FramerateControl(),
    framerateConversionAlgorithm:
        (json['framerateConversionAlgorithm'] as String?)
            ?.toH265FramerateConversionAlgorithm(),
    framerateDenominator: json['framerateDenominator'] as int?,
    framerateNumerator: json['framerateNumerator'] as int?,
    gopBReference: (json['gopBReference'] as String?)?.toH265GopBReference(),
    gopClosedCadence: json['gopClosedCadence'] as int?,
    gopSize: json['gopSize'] as double?,
    gopSizeUnits: (json['gopSizeUnits'] as String?)?.toH265GopSizeUnits(),
    hrdBufferInitialFillPercentage:
        json['hrdBufferInitialFillPercentage'] as int?,
    hrdBufferSize: json['hrdBufferSize'] as int?,
    interlaceMode: (json['interlaceMode'] as String?)?.toH265InterlaceMode(),
    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?)?.toH265ParControl(),
    parDenominator: json['parDenominator'] as int?,
    parNumerator: json['parNumerator'] as int?,
    qualityTuningLevel:
        (json['qualityTuningLevel'] as String?)?.toH265QualityTuningLevel(),
    qvbrSettings: json['qvbrSettings'] != null
        ? H265QvbrSettings.fromJson(
            json['qvbrSettings'] as Map<String, dynamic>)
        : null,
    rateControlMode:
        (json['rateControlMode'] as String?)?.toH265RateControlMode(),
    sampleAdaptiveOffsetFilterMode:
        (json['sampleAdaptiveOffsetFilterMode'] as String?)
            ?.toH265SampleAdaptiveOffsetFilterMode(),
    sceneChangeDetect:
        (json['sceneChangeDetect'] as String?)?.toH265SceneChangeDetect(),
    slices: json['slices'] as int?,
    slowPal: (json['slowPal'] as String?)?.toH265SlowPal(),
    spatialAdaptiveQuantization:
        (json['spatialAdaptiveQuantization'] as String?)
            ?.toH265SpatialAdaptiveQuantization(),
    telecine: (json['telecine'] as String?)?.toH265Telecine(),
    temporalAdaptiveQuantization:
        (json['temporalAdaptiveQuantization'] as String?)
            ?.toH265TemporalAdaptiveQuantization(),
    temporalIds: (json['temporalIds'] as String?)?.toH265TemporalIds(),
    tiles: (json['tiles'] as String?)?.toH265Tiles(),
    unregisteredSeiTimecode: (json['unregisteredSeiTimecode'] as String?)
        ?.toH265UnregisteredSeiTimecode(),
    writeMp4PackagingType: (json['writeMp4PackagingType'] as String?)
        ?.toH265WriteMp4PackagingType(),
  );
}