UNPKG

@bitmovin/api-sdk

Version:

Bitmovin JS/TS API SDK

54 lines (53 loc) 2.3 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.H262VideoConfiguration = void 0; var Mapper_1 = require("../common/Mapper"); var CodecConfigType_1 = require("./CodecConfigType"); var VideoConfiguration_1 = require("./VideoConfiguration"); /** * @export * @class H262VideoConfiguration */ var H262VideoConfiguration = /** @class */ (function (_super) { __extends(H262VideoConfiguration, _super); function H262VideoConfiguration(obj) { var _this = _super.call(this, obj) || this; /** * Discriminator property for CodecConfiguration * @type {string} * @memberof H262VideoConfiguration */ _this.type = CodecConfigType_1.default.H262; if (!obj) { return _this; } _this.presetConfiguration = (0, Mapper_1.map)(obj.presetConfiguration); _this.profile = (0, Mapper_1.map)(obj.profile); _this.bframes = (0, Mapper_1.map)(obj.bframes); _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.gopSize = (0, Mapper_1.map)(obj.gopSize); _this.level = (0, Mapper_1.map)(obj.level); _this.interlaceMode = (0, Mapper_1.map)(obj.interlaceMode); return _this; } return H262VideoConfiguration; }(VideoConfiguration_1.default)); exports.H262VideoConfiguration = H262VideoConfiguration; exports.default = H262VideoConfiguration;