@bitmovin/api-sdk
Version:
Bitmovin JS/TS API SDK
64 lines (63 loc) • 2.95 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.Vp8VideoConfiguration = void 0;
var Mapper_1 = require("../common/Mapper");
var CodecConfigType_1 = require("./CodecConfigType");
var VideoConfiguration_1 = require("./VideoConfiguration");
/**
* @export
* @class Vp8VideoConfiguration
*/
var Vp8VideoConfiguration = /** @class */ (function (_super) {
__extends(Vp8VideoConfiguration, _super);
function Vp8VideoConfiguration(obj) {
var _this = _super.call(this, obj) || this;
/**
* Discriminator property for CodecConfiguration
* @type {string}
* @memberof Vp8VideoConfiguration
*/
_this.type = CodecConfigType_1.default.VP8;
if (!obj) {
return _this;
}
_this.crf = (0, Mapper_1.map)(obj.crf);
_this.lagInFrames = (0, Mapper_1.map)(obj.lagInFrames);
_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.cpuUsed = (0, Mapper_1.map)(obj.cpuUsed);
_this.noiseSensitivity = (0, Mapper_1.map)(obj.noiseSensitivity);
_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.staticThresh = (0, Mapper_1.map)(obj.staticThresh);
_this.arnrMaxFrames = (0, Mapper_1.map)(obj.arnrMaxFrames);
_this.arnrStrength = (0, Mapper_1.map)(obj.arnrStrength);
_this.arnrType = (0, Mapper_1.map)(obj.arnrType);
return _this;
}
return Vp8VideoConfiguration;
}(VideoConfiguration_1.default));
exports.Vp8VideoConfiguration = Vp8VideoConfiguration;
exports.default = Vp8VideoConfiguration;