-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
types.js
58 lines (50 loc) · 1.46 KB
/
types.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/**
* @typedef {object} AVProfileItem
* @property {string} name
* @property {string} PP profile numbers (seq_profile)
*/
/**
* @typedef {object} VCProfileItem
* @property {string} name
* @property {string} PP profile numbers as hex string
* @property {string} CC constraints component as hex string
*/
/**
* @typedef {object} CodecItem
* @property {string} name
* @property {string} cccc the four-character ID for the codec
*/
/**
* @typedef {object} MediaCodecItem
* @property {string} name
* @property {string} codec
*/
/**
* @typedef {object} VPCodecOptions
* @property {string} name Human readable codec name: "VP8" or "VP9"
* @property {number} profile 0, 1, 2 or 3
* @property {string} level
* @property {number} bitDepth
*/
/**
* @typedef {object} AVCodecOptions
* @property {string} name Human readable codec name: "AV1", potentially AV2 in the future
* @property {string} profile AV profile name: "Main", "High" or "Professional"
* @property {string} level
* @property {string} tier "Main" or "High"
* @property {number} bitDepth 8, 10 or 12
*/
/**
* @typedef {object} AVCCodecOptions
* @property {string} profile AVC profile name (eg. "Baseline")
* @property {string} level
*/
/**
* @typedef {object} HEVCCodecOptions
* @property {string} profile HEVC profile name (eg. "Main 10")
* @property {number} compatibility
* @property {string} level
* @property {string} tier "Main" or "High"
* @property {string} constraint TODO
*/
export {};