FFmpeg
av1.h
Go to the documentation of this file.
1 /*
2  * This file is part of FFmpeg.
3  *
4  * FFmpeg is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * FFmpeg is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with FFmpeg; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17  */
18 
19 /**
20  * @file
21  * AV1 common definitions
22  */
23 
24 #ifndef AVCODEC_AV1_H
25 #define AVCODEC_AV1_H
26 
27 // OBU types (section 6.2.2).
28 typedef enum {
29  // 0 reserved.
38  // 9-14 reserved.
40 } AV1_OBU_Type;
41 
42 // Metadata types (section 6.7.1).
43 enum {
49 };
50 
51 // Frame types (section 6.8.2).
52 enum {
57 };
58 
59 // Reference frames (section 6.10.24).
60 enum {
69 };
70 
71 // Constants (section 3).
72 enum {
74 
77 
79  AV1_MAX_TILE_AREA = 4096 * 2304,
82 
87 
90 
96 
99 
102 
104 
112 
117 };
118 
119 
120 // The main colour configuration information uses the same ISO/IEC 23001-8
121 // (H.273) enums as FFmpeg does, so separate definitions are not required.
122 
123 // Chroma sample position.
124 enum {
126  AV1_CSP_VERTICAL = 1, // -> AVCHROMA_LOC_LEFT.
127  AV1_CSP_COLOCATED = 2, // -> AVCHROMA_LOC_TOPLEFT.
128 };
129 
130 // Scalability modes (section 6.7.5)
131 enum {
161 };
162 
163 #endif /* AVCODEC_AV1_H */
AV1_OBU_Type
Definition: av1.h:28