diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-10-30 16:32:00 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-11-06 17:41:26 +0100 |
commit | d1d30edf42da29fe4ab33c529112381cfea0a254 (patch) | |
tree | b41c9567a13f2b1d83fc6647e1573a448284e42c /libavcodec/msmpeg4_vc1_data.h | |
parent | 44600da5351016e25c08cee28b204f3ba1cea9d7 (diff) | |
download | ffmpeg-d1d30edf42da29fe4ab33c529112381cfea0a254.tar.gz |
avcodec/msmpeg4data: Move data shared between msmpeg4 and VC-1 out
This is in preparation for splitting VC-1 from msmpeg4.
(msmpeg4data.c was originally intended to be just this;
9488b966c76a7a52e9a1f7756bda82dbe1070399 changed it).
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/msmpeg4_vc1_data.h')
-rw-r--r-- | libavcodec/msmpeg4_vc1_data.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/libavcodec/msmpeg4_vc1_data.h b/libavcodec/msmpeg4_vc1_data.h new file mode 100644 index 0000000000..d12fcb032f --- /dev/null +++ b/libavcodec/msmpeg4_vc1_data.h @@ -0,0 +1,55 @@ +/* + * Common MSMPEG-4 and VC-1 tables + * Copyright (c) 2001 Fabrice Bellard + * Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at> + * + * msmpeg4v1 & v2 stuff by Michael Niedermayer <michaelni@gmx.at> + * + * This file is part of FFmpeg. + * + * FFmpeg is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * FFmpeg is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with FFmpeg; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef AVCODEC_MSMPEG4_VC1_DATA_H +#define AVCODEC_MSMPEG4_VC1_DATA_H + +#include <stdint.h> + +#include "vlc.h" +#include "libavutil/attributes_internal.h" + +FF_VISIBILITY_PUSH_HIDDEN +void ff_msmp4_vc1_vlcs_init_once(void); + +#define MSMP4_MB_INTRA_VLC_BITS 9 +extern VLC ff_msmp4_mb_i_vlc; +#define MSMP4_DC_VLC_BITS 9 +extern VLC ff_msmp4_dc_luma_vlc[2]; +extern VLC ff_msmp4_dc_chroma_vlc[2]; + +/* intra picture macroblock coded block pattern */ +extern const uint16_t ff_msmp4_mb_i_table[64][2]; + +#define WMV1_SCANTABLE_COUNT 4 + +extern const uint8_t ff_wmv1_scantable[WMV1_SCANTABLE_COUNT][64]; + +extern const uint32_t ff_table0_dc_lum[120][2]; +extern const uint32_t ff_table1_dc_lum[120][2]; +extern const uint32_t ff_table0_dc_chroma[120][2]; +extern const uint32_t ff_table1_dc_chroma[120][2]; +FF_VISIBILITY_POP_HIDDEN + +#endif /* AVCODEC_MSMPEG4_VC1_DATA_H */ |