Mercurial > libavcodec.hg
annotate mpeg12data.h @ 6920:d02af7474bff libavcodec
Prevent 128*1<<trellis from becoming 0 and creating 0 sized arrays.
fixes CID84 RUN2
CID85 RUN2
CID86 RUN2
CID87 RUN2
CID88 RUN2
CID89 RUN2
CID90 RUN2
CID91 RUN2
CID92 RUN2
CID93 RUN2
CID94 RUN2
CID95 RUN2
CID96 RUN2
CID97 RUN2
CID98 RUN2
CID99 RUN2
CID100 RUN2
CID101 RUN2
CID102 RUN2
CID103 RUN2
CID104 RUN2
CID105 RUN2
CID106 RUN2
author | michael |
---|---|
date | Wed, 28 May 2008 11:59:41 +0000 |
parents | f7cbb7733146 |
children | c4a4495715dd |
rev | line source |
---|---|
3699
c537a97eec66
Add official LGPL license headers to the files that were missing them.
diego
parents:
3556
diff
changeset
|
1 /* |
5208 | 2 * MPEG1/2 tables |
3699
c537a97eec66
Add official LGPL license headers to the files that were missing them.
diego
parents:
3556
diff
changeset
|
3 * copyright (c) 2000,2001 Fabrice Bellard |
c537a97eec66
Add official LGPL license headers to the files that were missing them.
diego
parents:
3556
diff
changeset
|
4 * copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at> |
c537a97eec66
Add official LGPL license headers to the files that were missing them.
diego
parents:
3556
diff
changeset
|
5 * |
3947
c8c591fe26f8
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
3776
diff
changeset
|
6 * This file is part of FFmpeg. |
c8c591fe26f8
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
3776
diff
changeset
|
7 * |
c8c591fe26f8
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
3776
diff
changeset
|
8 * FFmpeg is free software; you can redistribute it and/or |
3699
c537a97eec66
Add official LGPL license headers to the files that were missing them.
diego
parents:
3556
diff
changeset
|
9 * modify it under the terms of the GNU Lesser General Public |
c537a97eec66
Add official LGPL license headers to the files that were missing them.
diego
parents:
3556
diff
changeset
|
10 * License as published by the Free Software Foundation; either |
3947
c8c591fe26f8
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
3776
diff
changeset
|
11 * version 2.1 of the License, or (at your option) any later version. |
3699
c537a97eec66
Add official LGPL license headers to the files that were missing them.
diego
parents:
3556
diff
changeset
|
12 * |
3947
c8c591fe26f8
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
3776
diff
changeset
|
13 * FFmpeg is distributed in the hope that it will be useful, |
3699
c537a97eec66
Add official LGPL license headers to the files that were missing them.
diego
parents:
3556
diff
changeset
|
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
c537a97eec66
Add official LGPL license headers to the files that were missing them.
diego
parents:
3556
diff
changeset
|
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
c537a97eec66
Add official LGPL license headers to the files that were missing them.
diego
parents:
3556
diff
changeset
|
16 * Lesser General Public License for more details. |
c537a97eec66
Add official LGPL license headers to the files that were missing them.
diego
parents:
3556
diff
changeset
|
17 * |
c537a97eec66
Add official LGPL license headers to the files that were missing them.
diego
parents:
3556
diff
changeset
|
18 * You should have received a copy of the GNU Lesser General Public |
3947
c8c591fe26f8
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
3776
diff
changeset
|
19 * License along with FFmpeg; if not, write to the Free Software |
3699
c537a97eec66
Add official LGPL license headers to the files that were missing them.
diego
parents:
3556
diff
changeset
|
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
c537a97eec66
Add official LGPL license headers to the files that were missing them.
diego
parents:
3556
diff
changeset
|
21 */ |
c537a97eec66
Add official LGPL license headers to the files that were missing them.
diego
parents:
3556
diff
changeset
|
22 |
1106 | 23 /** |
24 * @file mpeg12data.h | |
25 * MPEG1/2 tables. | |
0 | 26 */ |
27 | |
5830
1d83e9c34641
Add FFMPEG_ prefix to all multiple inclusion guards.
diego
parents:
5210
diff
changeset
|
28 #ifndef FFMPEG_MPEG12DATA_H |
1d83e9c34641
Add FFMPEG_ prefix to all multiple inclusion guards.
diego
parents:
5210
diff
changeset
|
29 #define FFMPEG_MPEG12DATA_H |
5163 | 30 |
5162 | 31 #include <stdint.h> |
6763 | 32 #include "libavutil/rational.h" |
6447 | 33 #include "rl.h" |
34 | |
35 extern const uint16_t ff_mpeg1_default_intra_matrix[64]; | |
36 extern const uint16_t ff_mpeg1_default_non_intra_matrix[64]; | |
5162 | 37 |
5210 | 38 extern const uint16_t ff_mpeg12_vlc_dc_lum_code[12]; |
39 extern const unsigned char ff_mpeg12_vlc_dc_lum_bits[12]; | |
40 extern const uint16_t ff_mpeg12_vlc_dc_chroma_code[12]; | |
41 extern const unsigned char ff_mpeg12_vlc_dc_chroma_bits[12]; | |
0 | 42 |
5210 | 43 extern RLTable ff_rl_mpeg1; |
44 extern RLTable ff_rl_mpeg2; | |
0 | 45 |
5210 | 46 extern const uint8_t ff_mpeg12_mbAddrIncrTable[36][2]; |
47 extern const uint8_t ff_mpeg12_mbPatTable[64][2]; | |
0 | 48 |
5210 | 49 extern const uint8_t ff_mpeg12_mbMotionVectorTable[17][2]; |
1993 | 50 |
6447 | 51 extern const AVRational ff_frame_rate_tab[]; |
52 | |
5210 | 53 extern const float ff_mpeg1_aspect[16]; |
54 extern const AVRational ff_mpeg2_aspect[16]; | |
5163 | 55 |
5830
1d83e9c34641
Add FFMPEG_ prefix to all multiple inclusion guards.
diego
parents:
5210
diff
changeset
|
56 #endif /* FFMPEG_MPEG12DATA_H */ |