"Fossies" - the Fresh Open Source Software Archive 
Member "jitsi-meet-7561/react/features/video-quality/constants.ts" (29 Sep 2023, 1059 Bytes) of package /linux/misc/jitsi-meet-7561.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) TypeScript source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
1 /**
2 * Default last-n value used to be used for "HD" video quality setting when no channelLastN value is specified.
3 *
4 * @type {number}
5 */
6 export const DEFAULT_LAST_N = 20;
7
8 /**
9 * The supported remote video resolutions. The values are currently based on
10 * available simulcast layers.
11 *
12 * @type {object}
13 */
14 export const VIDEO_QUALITY_LEVELS = {
15 ULTRA: 2160,
16 HIGH: 720,
17 STANDARD: 360,
18 LOW: 180,
19 NONE: 0
20 };
21
22 /**
23 * Indicates unlimited video quality.
24 */
25 export const VIDEO_QUALITY_UNLIMITED = -1;
26
27 /**
28 * The maximum video quality from the VIDEO_QUALITY_LEVELS map.
29 */
30 export const MAX_VIDEO_QUALITY = Math.max(...Object.values(VIDEO_QUALITY_LEVELS));
31
32 /**
33 * Maps quality level names used in the config.videoQuality.minHeightForQualityLvl to the quality level constants used
34 * by the application.
35 *
36 * @type {Object}
37 */
38 export const CFG_LVL_TO_APP_QUALITY_LVL = {
39 'low': VIDEO_QUALITY_LEVELS.LOW,
40 'standard': VIDEO_QUALITY_LEVELS.STANDARD,
41 'high': VIDEO_QUALITY_LEVELS.HIGH,
42 'ultra': VIDEO_QUALITY_LEVELS.ULTRA
43 };