summaryrefslogtreecommitdiff
path: root/libavcodec/mpeg12data.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-02-13 15:26:28 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-02-13 15:26:28 +0000
commitf004ca1c1b5d272d8344ef12ab006cfe52cbf023 (patch)
tree71cf9b347708375ebdf005bf665ff8b159217d3c /libavcodec/mpeg12data.h
parent80feb2a23ec6cc2ce459404041485a6dfaaffbe6 (diff)
optimized encode_dc() (+2% speed on P3 for mpeg1 intra only encodings)
Originally committed as revision 298 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpeg12data.h')
-rw-r--r--libavcodec/mpeg12data.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/mpeg12data.h b/libavcodec/mpeg12data.h
index 4261986d24..65a8a2b9ae 100644
--- a/libavcodec/mpeg12data.h
+++ b/libavcodec/mpeg12data.h
@@ -61,6 +61,10 @@ const unsigned char vlc_dc_chroma_bits[12] = {
2, 2, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10,
};
+/* simple include everything table for dc, first byte is bits number next 3 are code*/
+static UINT32 mpeg1_lum_dc_uni[512];
+static UINT32 mpeg1_chr_dc_uni[512];
+
static const UINT16 mpeg1_vlc[113][2] = {
{ 0x3, 2 }, { 0x4, 4 }, { 0x5, 5 }, { 0x6, 7 },
{ 0x26, 8 }, { 0x21, 8 }, { 0xa, 10 }, { 0x1d, 12 },