@bitmovin/api-sdk
Version:
Bitmovin JS/TS API SDK
50 lines (49 loc) • 2.29 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.VideoConfiguration = void 0;
var Mapper_1 = require("../common/Mapper");
var CodecConfiguration_1 = require("./CodecConfiguration");
var ColorConfig_1 = require("./ColorConfig");
var DisplayAspectRatio_1 = require("./DisplayAspectRatio");
/**
* @export
* @class VideoConfiguration
*/
var VideoConfiguration = /** @class */ (function (_super) {
__extends(VideoConfiguration, _super);
function VideoConfiguration(obj) {
var _this = _super.call(this, obj) || this;
if (!obj) {
return _this;
}
_this.width = (0, Mapper_1.map)(obj.width);
_this.height = (0, Mapper_1.map)(obj.height);
_this.bitrate = (0, Mapper_1.map)(obj.bitrate);
_this.rate = (0, Mapper_1.map)(obj.rate);
_this.pixelFormat = (0, Mapper_1.map)(obj.pixelFormat);
_this.colorConfig = (0, Mapper_1.map)(obj.colorConfig, ColorConfig_1.default);
_this.sampleAspectRatioNumerator = (0, Mapper_1.map)(obj.sampleAspectRatioNumerator);
_this.sampleAspectRatioDenominator = (0, Mapper_1.map)(obj.sampleAspectRatioDenominator);
_this.displayAspectRatio = (0, Mapper_1.map)(obj.displayAspectRatio, DisplayAspectRatio_1.default);
_this.encodingMode = (0, Mapper_1.map)(obj.encodingMode);
return _this;
}
return VideoConfiguration;
}(CodecConfiguration_1.default));
exports.VideoConfiguration = VideoConfiguration;
exports.default = VideoConfiguration;