@bitmovin/api-sdk
Version:
Bitmovin JS/TS API SDK
92 lines (91 loc) • 5.09 kB
JavaScript
;
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.H264VideoConfiguration = void 0;
var Mapper_1 = require("../common/Mapper");
var Cea608708SubtitleConfiguration_1 = require("./Cea608708SubtitleConfiguration");
var CodecConfigType_1 = require("./CodecConfigType");
var VideoConfiguration_1 = require("./VideoConfiguration");
/**
* @export
* @class H264VideoConfiguration
*/
var H264VideoConfiguration = /** @class */ (function (_super) {
__extends(H264VideoConfiguration, _super);
function H264VideoConfiguration(obj) {
var _this = _super.call(this, obj) || this;
/**
* Discriminator property for CodecConfiguration
* @type {string}
* @memberof H264VideoConfiguration
*/
_this.type = CodecConfigType_1.default.H264;
if (!obj) {
return _this;
}
_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);
return _this;
}
return H264VideoConfiguration;
}(VideoConfiguration_1.default));
exports.H264VideoConfiguration = H264VideoConfiguration;
exports.default = H264VideoConfiguration;