UNPKG

@bitmovin/api-sdk

Version:

Bitmovin JS/TS API SDK

79 lines (78 loc) 4.03 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.Vp9VideoConfiguration = void 0; var Mapper_1 = require("../common/Mapper"); var CodecConfigType_1 = require("./CodecConfigType"); var VideoConfiguration_1 = require("./VideoConfiguration"); /** * @export * @class Vp9VideoConfiguration */ var Vp9VideoConfiguration = /** @class */ (function (_super) { __extends(Vp9VideoConfiguration, _super); function Vp9VideoConfiguration(obj) { var _this = _super.call(this, obj) || this; /** * Discriminator property for CodecConfiguration * @type {string} * @memberof Vp9VideoConfiguration */ _this.type = CodecConfigType_1.default.VP9; 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.lagInFrames = (0, Mapper_1.map)(obj.lagInFrames); _this.errorResiliencyEnabled = (0, Mapper_1.map)(obj.errorResiliencyEnabled); _this.tileColumns = (0, Mapper_1.map)(obj.tileColumns); _this.tileRows = (0, Mapper_1.map)(obj.tileRows); _this.frameParallel = (0, Mapper_1.map)(obj.frameParallel); _this.maxIntraRate = (0, Mapper_1.map)(obj.maxIntraRate); _this.qpMin = (0, Mapper_1.map)(obj.qpMin); _this.qpMax = (0, Mapper_1.map)(obj.qpMax); _this.rateUndershootPct = (0, Mapper_1.map)(obj.rateUndershootPct); _this.rateOvershootPct = (0, Mapper_1.map)(obj.rateOvershootPct); _this.clientBufferSize = (0, Mapper_1.map)(obj.clientBufferSize); _this.clientInitialBufferSize = (0, Mapper_1.map)(obj.clientInitialBufferSize); _this.biasPct = (0, Mapper_1.map)(obj.biasPct); _this.noiseSensitivity = (0, Mapper_1.map)(obj.noiseSensitivity); _this.cpuUsed = (0, Mapper_1.map)(obj.cpuUsed); _this.automaticAltRefFramesEnabled = (0, Mapper_1.map)(obj.automaticAltRefFramesEnabled); _this.targetLevel = (0, Mapper_1.map)(obj.targetLevel); _this.rowMultiThreadingEnabled = (0, Mapper_1.map)(obj.rowMultiThreadingEnabled); _this.sharpness = (0, Mapper_1.map)(obj.sharpness); _this.minGop = (0, Mapper_1.map)(obj.minGop); _this.maxGop = (0, Mapper_1.map)(obj.maxGop); _this.minKeyframeInterval = (0, Mapper_1.map)(obj.minKeyframeInterval); _this.maxKeyframeInterval = (0, Mapper_1.map)(obj.maxKeyframeInterval); _this.quality = (0, Mapper_1.map)(obj.quality); _this.lossless = (0, Mapper_1.map)(obj.lossless); _this.staticThresh = (0, Mapper_1.map)(obj.staticThresh); _this.aqMode = (0, Mapper_1.map)(obj.aqMode); _this.arnrMaxFrames = (0, Mapper_1.map)(obj.arnrMaxFrames); _this.arnrStrength = (0, Mapper_1.map)(obj.arnrStrength); _this.arnrType = (0, Mapper_1.map)(obj.arnrType); _this.autoLevelSetup = (0, Mapper_1.map)(obj.autoLevelSetup); return _this; } return Vp9VideoConfiguration; }(VideoConfiguration_1.default)); exports.Vp9VideoConfiguration = Vp9VideoConfiguration; exports.default = Vp9VideoConfiguration;