1 /*
2 * AVS3 related definitions
3 *
4 * Copyright (C) 2020 Huiwen Ren, <hwrenx@gmail.com>
5 *
6 * This file is part of FFmpeg.
7 *
8 * FFmpeg is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * FFmpeg is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with FFmpeg; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23 #ifndef AVCODEC_AVS3_H
24 #define AVCODEC_AVS3_H
25
26 #define AVS3_NAL_START_CODE 0x010000
27 #define AVS3_SEQ_START_CODE 0xB0
28 #define AVS3_SEQ_END_CODE 0xB1
29 #define AVS3_USER_DATA_START_CODE 0xB2
30 #define AVS3_INTRA_PIC_START_CODE 0xB3
31 #define AVS3_UNDEF_START_CODE 0xB4
32 #define AVS3_EXTENSION_START_CODE 0xB5
33 #define AVS3_INTER_PIC_START_CODE 0xB6
34 #define AVS3_VIDEO_EDIT_CODE 0xB7
35 #define AVS3_FIRST_SLICE_START_CODE 0x00
36 #define AVS3_PROFILE_BASELINE_MAIN 0x20
37 #define AVS3_PROFILE_BASELINE_MAIN10 0x22
38
39 #define AVS3_ISPIC(x) ((x) == AVS3_INTRA_PIC_START_CODE || (x) == AVS3_INTER_PIC_START_CODE)
40 #define AVS3_ISUNIT(x) ((x) == AVS3_SEQ_START_CODE || AVS3_ISPIC(x))
41
45
47 { 0 , 0 }, // forbid
48 { 24000, 1001},
49 { 24 , 1 },
50 { 25 , 1 },
51 { 30000, 1001},
52 { 30 , 1 },
53 { 50 , 1 },
54 { 60000, 1001},
55 { 60 , 1 },
56 { 100 , 1 },
57 { 120 , 1 },
58 { 200 , 1 },
59 { 240 , 1 },
60 { 300 , 1 },
61 { 0 , 0 }, // reserved
62 { 0 , 0 } // reserved
63 };
64
76 };
77
94 };
95
109 };
110
116 };
117
118 #endif /* AVCODEC_AVS3_H */