UNPKG

@bitmovin/api-sdk

Version:

Bitmovin JS/TS API SDK

32 lines (31 loc) 1.08 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MjpegVideoConfiguration = void 0; const Mapper_1 = require("../common/Mapper"); const CodecConfigType_1 = require("./CodecConfigType"); const CodecConfiguration_1 = require("./CodecConfiguration"); /** * @export * @class MjpegVideoConfiguration */ class MjpegVideoConfiguration extends CodecConfiguration_1.default { constructor(obj) { super(obj); /** * Discriminator property for CodecConfiguration * @type {string} * @memberof MjpegVideoConfiguration */ this.type = CodecConfigType_1.default.MJPEG; if (!obj) { return; } this.width = (0, Mapper_1.map)(obj.width); this.height = (0, Mapper_1.map)(obj.height); this.rate = (0, Mapper_1.map)(obj.rate); this.qScale = (0, Mapper_1.map)(obj.qScale); this.pixelFormat = (0, Mapper_1.map)(obj.pixelFormat); } } exports.MjpegVideoConfiguration = MjpegVideoConfiguration; exports.default = MjpegVideoConfiguration;