H264CodecSettings.fromJson constructor

H264CodecSettings.fromJson(
  1. Map json_
)

Implementation

H264CodecSettings.fromJson(core.Map json_)
    : this(
        allowOpenGop: json_.containsKey('allowOpenGop')
            ? json_['allowOpenGop'] as core.bool
            : null,
        aqStrength: json_.containsKey('aqStrength')
            ? (json_['aqStrength'] as core.num).toDouble()
            : null,
        bFrameCount: json_.containsKey('bFrameCount')
            ? json_['bFrameCount'] as core.int
            : null,
        bPyramid: json_.containsKey('bPyramid')
            ? json_['bPyramid'] as core.bool
            : null,
        bitrateBps: json_.containsKey('bitrateBps')
            ? json_['bitrateBps'] as core.int
            : null,
        crfLevel: json_.containsKey('crfLevel')
            ? json_['crfLevel'] as core.int
            : null,
        enableTwoPass: json_.containsKey('enableTwoPass')
            ? json_['enableTwoPass'] as core.bool
            : null,
        entropyCoder: json_.containsKey('entropyCoder')
            ? json_['entropyCoder'] as core.String
            : null,
        frameRate: json_.containsKey('frameRate')
            ? (json_['frameRate'] as core.num).toDouble()
            : null,
        frameRateConversionStrategy:
            json_.containsKey('frameRateConversionStrategy')
                ? json_['frameRateConversionStrategy'] as core.String
                : null,
        gopDuration: json_.containsKey('gopDuration')
            ? json_['gopDuration'] as core.String
            : null,
        gopFrameCount: json_.containsKey('gopFrameCount')
            ? json_['gopFrameCount'] as core.int
            : null,
        heightPixels: json_.containsKey('heightPixels')
            ? json_['heightPixels'] as core.int
            : null,
        hlg: json_.containsKey('hlg')
            ? H264ColorFormatHLG.fromJson(
                json_['hlg'] as core.Map<core.String, core.dynamic>)
            : null,
        pixelFormat: json_.containsKey('pixelFormat')
            ? json_['pixelFormat'] as core.String
            : null,
        preset: json_.containsKey('preset')
            ? json_['preset'] as core.String
            : null,
        profile: json_.containsKey('profile')
            ? json_['profile'] as core.String
            : null,
        rateControlMode: json_.containsKey('rateControlMode')
            ? json_['rateControlMode'] as core.String
            : null,
        sdr: json_.containsKey('sdr')
            ? H264ColorFormatSDR.fromJson(
                json_['sdr'] as core.Map<core.String, core.dynamic>)
            : null,
        tune: json_.containsKey('tune') ? json_['tune'] as core.String : null,
        vbvFullnessBits: json_.containsKey('vbvFullnessBits')
            ? json_['vbvFullnessBits'] as core.int
            : null,
        vbvSizeBits: json_.containsKey('vbvSizeBits')
            ? json_['vbvSizeBits'] as core.int
            : null,
        widthPixels: json_.containsKey('widthPixels')
            ? json_['widthPixels'] as core.int
            : null,
      );