@bitmovin/api-sdk
Version:
Bitmovin JS/TS API SDK
74 lines (73 loc) • 4.09 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.H264VideoConfiguration = void 0;
const Mapper_1 = require("../common/Mapper");
const Cea608708SubtitleConfiguration_1 = require("./Cea608708SubtitleConfiguration");
const CodecConfigType_1 = require("./CodecConfigType");
const VideoConfiguration_1 = require("./VideoConfiguration");
/**
* @export
* @class H264VideoConfiguration
*/
class H264VideoConfiguration extends VideoConfiguration_1.default {
constructor(obj) {
super(obj);
/**
* Discriminator property for CodecConfiguration
* @type {string}
* @memberof H264VideoConfiguration
*/
this.type = CodecConfigType_1.default.H264;
if (!obj) {
return;
}
this.presetConfiguration = (0, Mapper_1.map)(obj.presetConfiguration);
this.dynamicRangeFormat = (0, Mapper_1.map)(obj.dynamicRangeFormat);
this.crf = (0, Mapper_1.map)(obj.crf);
this.profile = (0, Mapper_1.map)(obj.profile);
this.bframes = (0, Mapper_1.map)(obj.bframes);
this.refFrames = (0, Mapper_1.map)(obj.refFrames);
this.qpMin = (0, Mapper_1.map)(obj.qpMin);
this.qpMax = (0, Mapper_1.map)(obj.qpMax);
this.mvPredictionMode = (0, Mapper_1.map)(obj.mvPredictionMode);
this.mvSearchRangeMax = (0, Mapper_1.map)(obj.mvSearchRangeMax);
this.cabac = (0, Mapper_1.map)(obj.cabac);
this.maxBitrate = (0, Mapper_1.map)(obj.maxBitrate);
this.minBitrate = (0, Mapper_1.map)(obj.minBitrate);
this.bufsize = (0, Mapper_1.map)(obj.bufsize);
this.minGop = (0, Mapper_1.map)(obj.minGop);
this.maxGop = (0, Mapper_1.map)(obj.maxGop);
this.openGop = (0, Mapper_1.map)(obj.openGop);
this.minKeyframeInterval = (0, Mapper_1.map)(obj.minKeyframeInterval);
this.maxKeyframeInterval = (0, Mapper_1.map)(obj.maxKeyframeInterval);
this.level = (0, Mapper_1.map)(obj.level);
this.bAdaptiveStrategy = (0, Mapper_1.map)(obj.bAdaptiveStrategy);
this.motionEstimationMethod = (0, Mapper_1.map)(obj.motionEstimationMethod);
this.rcLookahead = (0, Mapper_1.map)(obj.rcLookahead);
this.subMe = (0, Mapper_1.map)(obj.subMe);
this.trellis = (0, Mapper_1.map)(obj.trellis);
this.partitions = (0, Mapper_1.mapArray)(obj.partitions);
this.slices = (0, Mapper_1.map)(obj.slices);
this.interlaceMode = (0, Mapper_1.map)(obj.interlaceMode);
this.sceneCutThreshold = (0, Mapper_1.map)(obj.sceneCutThreshold);
this.nalHrd = (0, Mapper_1.map)(obj.nalHrd);
this.bPyramid = (0, Mapper_1.map)(obj.bPyramid);
this.cea608708SubtitleConfig = (0, Mapper_1.map)(obj.cea608708SubtitleConfig, Cea608708SubtitleConfiguration_1.default);
this.deblockAlpha = (0, Mapper_1.map)(obj.deblockAlpha);
this.deblockBeta = (0, Mapper_1.map)(obj.deblockBeta);
this.adaptiveQuantizationMode = (0, Mapper_1.map)(obj.adaptiveQuantizationMode);
this.adaptiveQuantizationStrength = (0, Mapper_1.map)(obj.adaptiveQuantizationStrength);
this.mixedReferences = (0, Mapper_1.map)(obj.mixedReferences);
this.adaptiveSpatialTransform = (0, Mapper_1.map)(obj.adaptiveSpatialTransform);
this.fastSkipDetectionPFrames = (0, Mapper_1.map)(obj.fastSkipDetectionPFrames);
this.weightedPredictionBFrames = (0, Mapper_1.map)(obj.weightedPredictionBFrames);
this.weightedPredictionPFrames = (0, Mapper_1.map)(obj.weightedPredictionPFrames);
this.macroblockTreeRatecontrol = (0, Mapper_1.map)(obj.macroblockTreeRatecontrol);
this.quantizerCurveCompression = (0, Mapper_1.map)(obj.quantizerCurveCompression);
this.psyRateDistortionOptimization = (0, Mapper_1.map)(obj.psyRateDistortionOptimization);
this.psyTrellis = (0, Mapper_1.map)(obj.psyTrellis);
this.autoLevelSetup = (0, Mapper_1.map)(obj.autoLevelSetup);
}
}
exports.H264VideoConfiguration = H264VideoConfiguration;
exports.default = H264VideoConfiguration;