avformat/mpeg: demux ivtv captions
[ffmpeg.git] / libavcodec / mpeg4videodata.h
blob8aac8a225587c9fc8a5bcc7bb0f509af8eb24ece
1 /*
2 * MPEG-4 encoder/decoder data.
3 * Copyright (c) 2000,2001 Fabrice Bellard
4 * Copyright (c) 2002-2010 Michael Niedermayer <michaelni@gmx.at>
6 * This file is part of FFmpeg.
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.
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.
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
23 #ifndef AVCODEC_MPEG4VIDEODATA_H
24 #define AVCODEC_MPEG4VIDEODATA_H
26 #include <stdint.h>
27 #include "rl.h"
29 /* dc encoding for MPEG-4 */
30 extern const uint8_t ff_mpeg4_DCtab_lum[13][2];
31 extern const uint8_t ff_mpeg4_DCtab_chrom[13][2];
33 extern const uint16_t ff_mpeg4_intra_vlc[103][2];
34 extern const int8_t ff_mpeg4_intra_level[102];
35 extern const int8_t ff_mpeg4_intra_run[102];
37 extern RLTable ff_mpeg4_rl_intra;
38 void ff_mpeg4_init_rl_intra(void);
40 /* Note this is identical to the intra rvlc except that it is reordered. */
41 extern RLTable ff_rvlc_rl_inter;
42 extern RLTable ff_rvlc_rl_intra;
44 extern const uint8_t ff_sprite_trajectory_lens[15];
45 extern const uint8_t ff_mb_type_b_tab[4][2];
47 /* these matrixes will be permuted for the idct */
48 extern const int16_t ff_mpeg4_default_intra_matrix[64];
49 extern const int16_t ff_mpeg4_default_non_intra_matrix[64];
51 extern const uint8_t ff_mpeg4_y_dc_scale_table[32];
52 extern const uint8_t ff_mpeg4_c_dc_scale_table[32];
54 extern const uint8_t ff_mpeg4_dc_threshold[8];
56 extern const uint8_t ff_mpeg4_studio_dc_luma[19][2];
57 extern const uint8_t ff_mpeg4_studio_dc_chroma[19][2];
58 extern const uint8_t ff_mpeg4_studio_intra[12][24][2];
60 #endif /* AVCODEC_MPEG4VIDEO_H */