{"version":3,"sources":["src/sdk/AvatarVideoFormat.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,qBAAa,UAAU;IACZ,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;gBAEE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;CAI1C;AAED;;;;;;GAMG;AACH,qBAAa,iBAAiB;IAC1B;;;OAGG;IACI,KAAK,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACI,OAAO,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACI,KAAK,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACI,MAAM,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACI,YAAY,CAAC,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,GAAG,IAAI;IAOvE;;;;OAIG;IACI,SAAS,EAAE;QACd,OAAO,EAAE,UAAU,CAAC;QACpB,WAAW,EAAE,UAAU,CAAC;KAC3B,CAAC;IAEF;;;;;;;OAOG;gBACgB,KAAK,GAAE,MAAe,EACtB,OAAO,GAAE,MAAgB,EACzB,KAAK,GAAE,MAAa,EACpB,MAAM,GAAE,MAAa;CAO3C","file":"AvatarVideoFormat.d.ts","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\n\n/* eslint-disable max-classes-per-file */\n\n/**\n * Defines a coordinate in 2D space.\n * @class Coordinate\n * Added in version 1.33.0\n */\nexport class Coordinate {\n    public x: number;\n    public y: number;\n\n    public constructor(x: number, y: number) {\n        this.x = x;\n        this.y = y;\n    }\n}\n\n/**\n * Defines the avatar output video format.\n * @class AvatarVideoFormat\n * Added in version 1.33.0\n *\n * @experimental This feature is experimental and might change in the future.\n */\nexport class AvatarVideoFormat {\n    /**\n     * Defines the video codec.\n     * @default \"H264\"\n     */\n    public codec: string;\n    /**\n     * Defines the video bitrate.\n     * @default 2000000\n     */\n    public bitrate: number;\n    /**\n     * Defines the video width.\n     * @default 1920\n     */\n    public width: number;\n    /**\n     * Defines the video height.\n     * @default 1080\n     */\n    public height: number;\n\n    /**\n     * Sets the video crop range.\n     */\n    public setCropRange(topLeft: Coordinate, bottomRight: Coordinate): void {\n        this.cropRange = {\n            bottomRight,\n            topLeft,\n        };\n    }\n\n    /**\n     * Defines the video crop range.\n     * @default undefined\n     * @internal\n     */\n    public cropRange: {\n        topLeft: Coordinate;\n        bottomRight: Coordinate;\n    };\n\n    /**\n     * Creates and initializes an instance of this class.\n     * @constructor\n     * @param {string} codec - The video codec.\n     * @param {number} bitrate - The video bitrate.\n     * @param {number} width - The video width.\n     * @param {number} height - The video height.\n     */\n    public constructor(codec: string = \"H264\",\n                       bitrate: number = 2000000,\n                       width: number = 1920,\n                       height: number = 1080,\n    ) {\n        this.codec = codec;\n        this.bitrate = bitrate;\n        this.width = width;\n        this.height = height;\n    }\n}\n"]}