2 * Common MSMPEG-4 and VC-1 tables
3 * Copyright (c) 2001 Fabrice Bellard
4 * Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>
6 * msmpeg4v1 & v2 stuff by Michael Niedermayer <michaelni@gmx.at>
8 * This file is part of FFmpeg.
10 * FFmpeg is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public
12 * License as published by the Free Software Foundation; either
13 * version 2.1 of the License, or (at your option) any later version.
15 * FFmpeg is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Lesser General Public License for more details.
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with FFmpeg; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25 #ifndef AVCODEC_MSMPEG4_VC1_DATA_H
26 #define AVCODEC_MSMPEG4_VC1_DATA_H
31 #include "libavutil/attributes_internal.h"
33 FF_VISIBILITY_PUSH_HIDDEN
34 void ff_msmp4_vc1_vlcs_init_once(void);
36 #define MSMP4_MB_INTRA_VLC_BITS 9
37 extern VLC ff_msmp4_mb_i_vlc;
38 #define MSMP4_DC_VLC_BITS 9
39 extern VLC ff_msmp4_dc_luma_vlc[2];
40 extern VLC ff_msmp4_dc_chroma_vlc[2];
42 /* intra picture macroblock coded block pattern */
43 extern const uint16_t ff_msmp4_mb_i_table[64][2];
45 #define WMV1_SCANTABLE_COUNT 4
47 extern const uint8_t ff_wmv1_scantable[WMV1_SCANTABLE_COUNT][64];
49 extern const uint32_t ff_table0_dc_lum[120][2];
50 extern const uint32_t ff_table1_dc_lum[120][2];
51 extern const uint32_t ff_table0_dc_chroma[120][2];
52 extern const uint32_t ff_table1_dc_chroma[120][2];
53 FF_VISIBILITY_POP_HIDDEN
55 #endif /* AVCODEC_MSMPEG4_VC1_DATA_H */