Mercurial > libavcodec.hg
annotate mpeg12data.h @ 5705:c08c9340c7ca libavcodec
factor out dequant table lookup outside loops, gives a 1-2% speed-up
patch by Andreas ªÓman %andreas A olebyn P nu%
original thread:
Date: Sep 24, 2007 12:59 PM
Subject: [FFmpeg-devel] [PATCH] h264: factor out dequant table lookup outside loops
author | gpoirier |
---|---|
date | Mon, 24 Sep 2007 13:01:15 +0000 |
parents | b52fd9b223bb |
children | 1d83e9c34641 |
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 | |
5163 | 28 #ifndef AVCODEC_MPEG12DATA_H |
29 #define AVCODEC_MPEG12DATA_H | |
30 | |
5162 | 31 #include <stdint.h> |
32 #include "mpegvideo.h" | |
33 | |
5210 | 34 extern const uint16_t ff_mpeg12_vlc_dc_lum_code[12]; |
35 extern const unsigned char ff_mpeg12_vlc_dc_lum_bits[12]; | |
36 extern const uint16_t ff_mpeg12_vlc_dc_chroma_code[12]; | |
37 extern const unsigned char ff_mpeg12_vlc_dc_chroma_bits[12]; | |
0 | 38 |
5210 | 39 extern RLTable ff_rl_mpeg1; |
40 extern RLTable ff_rl_mpeg2; | |
0 | 41 |
5210 | 42 extern const uint8_t ff_mpeg12_mbAddrIncrTable[36][2]; |
43 extern const uint8_t ff_mpeg12_mbPatTable[64][2]; | |
0 | 44 |
5210 | 45 extern const uint8_t ff_mpeg12_mbMotionVectorTable[17][2]; |
1993 | 46 |
5210 | 47 extern const float ff_mpeg1_aspect[16]; |
48 extern const AVRational ff_mpeg2_aspect[16]; | |
5163 | 49 |
5169
3fd46e281bd8
add a comment to indicate which #endif belong to which #define
gpoirier
parents:
5163
diff
changeset
|
50 #endif // AVCODEC_MPEG12DATA_H |