-
Notifications
You must be signed in to change notification settings - Fork 259
/
Copy pathlevels.rs
116 lines (111 loc) · 2.34 KB
/
levels.rs
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
// Copyright (c) 2018-2022, The rav1e contributors. All rights reserved
//
// This source code is subject to the terms of the BSD 2 Clause License and
// the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
// was not distributed with this source code in the LICENSE file, you can
// obtain it at www.aomedia.org/license/software. If the Alliance for Open
// Media Patent License 1.0 was not distributed with this source code in the
// PATENTS file, you can obtain it at www.aomedia.org/license/patent.
pub static AV1_LEVEL_DEFINED: [bool; 32] = [
true, // 2.0
true, // 2.1
false, false, true, // 3.0
true, // 3.1
false, false, true, // 4.0
true, // 4.1
false, false, true, // 5.0
true, // 5.1
true, // 5.2
true, // 5.3
true, // 6.0
true, // 6.1
true, // 6.2
true, // 6.3
false, false, false, false, false, false, false, false, false, false, false,
false,
];
pub static AV1_LEVEL_MAX_PIC_SIZE: [usize; 32] = [
147456, // 2.0
278784, // 2.1
0, 0, 665856, // 3.0
1065024, // 3.1
0, 0, 2359296, // 4.0
23592960, // 4.1
0, 0, 8912896, // 5.0
8912896, // 5.1
8912896, // 5.2
8912896, // 5.3
35651584, // 6.0
35651584, // 6.1
35651584, // 6.2
35651584, // 6.3
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
];
pub static AV1_LEVEL_MAX_H_SIZE: [usize; 32] = [
2048, // 2.0
2816, // 2.1
0, 0, 4352, // 3.0
5504, // 3.1
0, 0, 6144, // 4.0
6144, // 4.1
0, 0, 8192, // 5.0
8192, // 5.1
8192, // 5.2
8192, // 5.3
16384, // 6.0
16384, // 6.1
16384, // 6.2
16384, // 6.3
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
];
pub static AV1_LEVEL_MAX_V_SIZE: [usize; 32] = [
1152, // 2.0
1584, // 2.1
0, 0, 2448, // 3.0
3096, // 3.1
0, 0, 3456, // 4.0
3456, // 4.1
0, 0, 4352, // 5.0
4352, // 5.1
4352, // 5.2
4352, // 5.3
8704, // 6.0
8704, // 6.1
8704, // 6.2
8704, // 6.3
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
];
pub static AV1_LEVEL_MAX_DISPLAY_RATE: [usize; 32] = [
4_423_680, // 2.0
8_363_520, // 2.1
0,
0,
19_975_680, // 3.0
31_950_720, // 3.1
0,
0,
70_778_880, // 4.0
141_557_760, // 4.1
0,
0,
267_386_880, // 5.0
534_773_760, // 5.1
1_069_547_520, // 5.2
1_069_547_520, // 5.3
1_069_547_520, // 6.0
2_139_095_040, // 6.1
4_278_190_080, // 6.2
4_278_190_080, // 6.3
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
];