FFmpeg
Loading...
Searching...
No Matches
mpeg4videodefs.h
Go to the documentation of this file.
1/*
2 * MPEG-4 definitions.
3 * Copyright (c) 2000,2001 Fabrice Bellard
4 * Copyright (c) 2002-2010 Michael Niedermayer <michaelni@gmx.at>
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_MPEG4VIDEODEFS_H
24#define AVCODEC_MPEG4VIDEODEFS_H
25
26// shapes
27#define RECT_SHAPE 0
28#define BIN_SHAPE 1
29#define BIN_ONLY_SHAPE 2
30#define GRAY_SHAPE 3
31
32#define SIMPLE_VO_TYPE 1
33#define CORE_VO_TYPE 3
34#define MAIN_VO_TYPE 4
35#define NBIT_VO_TYPE 5
36#define ARTS_VO_TYPE 10
37#define ACE_VO_TYPE 12
38#define SIMPLE_STUDIO_VO_TYPE 14
39#define CORE_STUDIO_VO_TYPE 15
40#define ADV_SIMPLE_VO_TYPE 17
41
42#define VOT_VIDEO_ID 1
43#define VOT_STILL_TEXTURE_ID 2
44
45// aspect_ratio_info
46#define EXTENDED_PAR 15
47
48//vol_sprite_usage / sprite_enable
49#define STATIC_SPRITE 1
50#define GMC_SPRITE 2
51
52#define MOTION_MARKER 0x1F001
53#define DC_MARKER 0x6B001
54
55#define VOS_STARTCODE 0x1B0
56#define USER_DATA_STARTCODE 0x1B2
57#define GOP_STARTCODE 0x1B3
58#define VISUAL_OBJ_STARTCODE 0x1B5
59#define VOP_STARTCODE 0x1B6
60#define SLICE_STARTCODE 0x1B7
61#define EXT_STARTCODE 0x1B8
62
63#define QUANT_MATRIX_EXT_ID 0x3
64
65/* smaller packets likely don't contain a real frame */
66#define MAX_NVOP_SIZE 19
67
68#endif /* AVCODEC_MPEG4VIDEODEFS_H */