UNPKG

@bitmovin/api-sdk

Version:

Bitmovin JS/TS API SDK

125 lines (124 loc) 8.08 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.H265VideoConfiguration = 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 H265VideoConfiguration */ class H265VideoConfiguration extends VideoConfiguration_1.default { constructor(obj) { super(obj); /** * Discriminator property for CodecConfiguration * @type {string} * @memberof H265VideoConfiguration */ this.type = CodecConfigType_1.default.H265; 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.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); } } exports.H265VideoConfiguration = H265VideoConfiguration; exports.default = H265VideoConfiguration;