UNPKG

@bitmovin/api-sdk

Version:

Bitmovin JS/TS API SDK

143 lines (142 loc) 9.13 kB
"use strict"; 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.H265VideoConfiguration = 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 H265VideoConfiguration */ var H265VideoConfiguration = /** @class */ (function (_super) { __extends(H265VideoConfiguration, _super); function H265VideoConfiguration(obj) { var _this = _super.call(this, obj) || this; /** * Discriminator property for CodecConfiguration * @type {string} * @memberof H265VideoConfiguration */ _this.type = CodecConfigType_1.default.H265; 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.qp = (0, Mapper_1.map)(obj.qp); _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.rcLookahead = (0, Mapper_1.map)(obj.rcLookahead); _this.bAdapt = (0, Mapper_1.map)(obj.bAdapt); _this.maxCTUSize = (0, Mapper_1.map)(obj.maxCTUSize); _this.tuIntraDepth = (0, Mapper_1.map)(obj.tuIntraDepth); _this.tuInterDepth = (0, Mapper_1.map)(obj.tuInterDepth); _this.motionSearch = (0, Mapper_1.map)(obj.motionSearch); _this.subMe = (0, Mapper_1.map)(obj.subMe); _this.motionSearchRange = (0, Mapper_1.map)(obj.motionSearchRange); _this.weightPredictionOnPSlice = (0, Mapper_1.map)(obj.weightPredictionOnPSlice); _this.weightPredictionOnBSlice = (0, Mapper_1.map)(obj.weightPredictionOnBSlice); _this.sao = (0, Mapper_1.map)(obj.sao); _this.masterDisplay = (0, Mapper_1.map)(obj.masterDisplay); _this.maxContentLightLevel = (0, Mapper_1.map)(obj.maxContentLightLevel); _this.maxPictureAverageLightLevel = (0, Mapper_1.map)(obj.maxPictureAverageLightLevel); _this.hdr = (0, Mapper_1.map)(obj.hdr); _this.sceneCutThreshold = (0, Mapper_1.map)(obj.sceneCutThreshold); _this.adaptiveQuantizationMode = (0, Mapper_1.map)(obj.adaptiveQuantizationMode); _this.enableHlgSignaling = (0, Mapper_1.map)(obj.enableHlgSignaling); _this.videoFormat = (0, Mapper_1.map)(obj.videoFormat); _this.psyRateDistortionOptimization = (0, Mapper_1.map)(obj.psyRateDistortionOptimization); _this.psyRateDistortionOptimizedQuantization = (0, Mapper_1.map)(obj.psyRateDistortionOptimizedQuantization); _this.enableHrdSignaling = (0, Mapper_1.map)(obj.enableHrdSignaling); _this.cutree = (0, Mapper_1.map)(obj.cutree); _this.minCodingUnitSize = (0, Mapper_1.map)(obj.minCodingUnitSize); _this.lookaheadSlices = (0, Mapper_1.map)(obj.lookaheadSlices); _this.limitReferences = (0, Mapper_1.map)(obj.limitReferences); _this.rectangularMotionPartitionsAnalysis = (0, Mapper_1.map)(obj.rectangularMotionPartitionsAnalysis); _this.asymetricMotionPartitionsAnalysis = (0, Mapper_1.map)(obj.asymetricMotionPartitionsAnalysis); _this.limitModes = (0, Mapper_1.map)(obj.limitModes); _this.maxMerge = (0, Mapper_1.map)(obj.maxMerge); _this.earlySkip = (0, Mapper_1.map)(obj.earlySkip); _this.recursionSkip = (0, Mapper_1.map)(obj.recursionSkip); _this.fastSearchForAngularIntraPredictions = (0, Mapper_1.map)(obj.fastSearchForAngularIntraPredictions); _this.evaluationOfIntraModesInBSlices = (0, Mapper_1.map)(obj.evaluationOfIntraModesInBSlices); _this.signHide = (0, Mapper_1.map)(obj.signHide); _this.rateDistortionLevelForModeDecision = (0, Mapper_1.map)(obj.rateDistortionLevelForModeDecision); _this.rateDistortionLevelForQuantization = (0, Mapper_1.map)(obj.rateDistortionLevelForQuantization); _this.qpMin = (0, Mapper_1.map)(obj.qpMin); _this.qpMax = (0, Mapper_1.map)(obj.qpMax); _this.wavefrontParallelProcessing = (0, Mapper_1.map)(obj.wavefrontParallelProcessing); _this.slices = (0, Mapper_1.map)(obj.slices); _this.copyPicture = (0, Mapper_1.map)(obj.copyPicture); _this.levelHighTier = (0, Mapper_1.map)(obj.levelHighTier); _this.skipSplitRateDistortionAnalysis = (0, Mapper_1.map)(obj.skipSplitRateDistortionAnalysis); _this.codingUnitLossless = (0, Mapper_1.map)(obj.codingUnitLossless); _this.transformSkip = (0, Mapper_1.map)(obj.transformSkip); _this.refineRateDistortionCost = (0, Mapper_1.map)(obj.refineRateDistortionCost); _this.limitTransformUnitDepthRecursion = (0, Mapper_1.map)(obj.limitTransformUnitDepthRecursion); _this.noiseReductionIntra = (0, Mapper_1.map)(obj.noiseReductionIntra); _this.noiseReductionInter = (0, Mapper_1.map)(obj.noiseReductionInter); _this.rateDistortionPenalty = (0, Mapper_1.map)(obj.rateDistortionPenalty); _this.maximumTransformUnitSize = (0, Mapper_1.map)(obj.maximumTransformUnitSize); _this.dynamicRateDistortionStrength = (0, Mapper_1.map)(obj.dynamicRateDistortionStrength); _this.ssimRateDistortionOptimization = (0, Mapper_1.map)(obj.ssimRateDistortionOptimization); _this.temporalMotionVectorPredictors = (0, Mapper_1.map)(obj.temporalMotionVectorPredictors); _this.analyzeSourceFramePixels = (0, Mapper_1.map)(obj.analyzeSourceFramePixels); _this.strongIntraSmoothing = (0, Mapper_1.map)(obj.strongIntraSmoothing); _this.constrainedIntraPrediction = (0, Mapper_1.map)(obj.constrainedIntraPrediction); _this.scenecutBias = (0, Mapper_1.map)(obj.scenecutBias); _this.allowedRADLBeforeIDR = (0, Mapper_1.map)(obj.allowedRADLBeforeIDR); _this.gopLookahead = (0, Mapper_1.map)(obj.gopLookahead); _this.bframeBias = (0, Mapper_1.map)(obj.bframeBias); _this.forceFlush = (0, Mapper_1.map)(obj.forceFlush); _this.adaptiveQuantizationStrength = (0, Mapper_1.map)(obj.adaptiveQuantizationStrength); _this.adaptiveQuantizationMotion = (0, Mapper_1.map)(obj.adaptiveQuantizationMotion); _this.quantizationGroupSize = (0, Mapper_1.map)(obj.quantizationGroupSize); _this.strictCbr = (0, Mapper_1.map)(obj.strictCbr); _this.qpOffsetChromaCb = (0, Mapper_1.map)(obj.qpOffsetChromaCb); _this.qpOffsetChromaCr = (0, Mapper_1.map)(obj.qpOffsetChromaCr); _this.ipRatio = (0, Mapper_1.map)(obj.ipRatio); _this.pbRatio = (0, Mapper_1.map)(obj.pbRatio); _this.quantizerCurveCompressionFactor = (0, Mapper_1.map)(obj.quantizerCurveCompressionFactor); _this.qpStep = (0, Mapper_1.map)(obj.qpStep); _this.grainOptimizedRateControl = (0, Mapper_1.map)(obj.grainOptimizedRateControl); _this.blurQuants = (0, Mapper_1.map)(obj.blurQuants); _this.blurComplexity = (0, Mapper_1.map)(obj.blurComplexity); _this.saoNonDeblock = (0, Mapper_1.map)(obj.saoNonDeblock); _this.limitSao = (0, Mapper_1.map)(obj.limitSao); _this.lowpassDct = (0, Mapper_1.map)(obj.lowpassDct); _this.cea608708SubtitleConfig = (0, Mapper_1.map)(obj.cea608708SubtitleConfig, Cea608708SubtitleConfiguration_1.default); _this.autoLevelSetup = (0, Mapper_1.map)(obj.autoLevelSetup); return _this; } return H265VideoConfiguration; }(VideoConfiguration_1.default)); exports.H265VideoConfiguration = H265VideoConfiguration; exports.default = H265VideoConfiguration;