diff mpeg12data.h @ 237:75123d30f862 libavcodec

optimized encode_dc() (+2% speed on P3 for mpeg1 intra only encodings)
author michaelni
date Wed, 13 Feb 2002 15:26:28 +0000
parents 4a090f1da60a
children 0b4450c15067
line wrap: on
line diff
--- a/mpeg12data.h	Wed Feb 13 04:19:10 2002 +0000
+++ b/mpeg12data.h	Wed Feb 13 15:26:28 2002 +0000
@@ -61,6 +61,10 @@
     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 },