diff cabac.h @ 3976:27e90123b346 libavcodec

reverse remainder of the failed attempt to optimize *state=c->mps_state[s]
author michael
date Mon, 09 Oct 2006 21:14:16 +0000
parents 6cc9eb5ee5e3
children ebf01ad52879
line wrap: on
line diff
--- a/cabac.h	Mon Oct 09 20:51:33 2006 +0000
+++ b/cabac.h	Mon Oct 09 21:14:16 2006 +0000
@@ -40,9 +40,9 @@
 #ifdef STRICT_LIMITS
     int symCount;
 #endif
-    uint8_t lps_range[2*66][4];   ///< rangeTabLPS
-    uint8_t lps_state[2*65];      ///< transIdxLPS
-    uint8_t mps_state[2*65];      ///< transIdxMPS
+    uint8_t lps_range[2*65][4];   ///< rangeTabLPS
+    uint8_t lps_state[2*64];      ///< transIdxLPS
+    uint8_t mps_state[2*64];      ///< transIdxMPS
     const uint8_t *bytestream_start;
     const uint8_t *bytestream;
     const uint8_t *bytestream_end;
@@ -370,11 +370,11 @@
 #define LOW          "0"
 #define RANGE        "4"
 #define LPS_RANGE   "12"
-#define LPS_STATE   "12+2*66*4"
-#define MPS_STATE   "12+2*66*4+2*65"
-#define BYTESTART   "12+2*66*4+4*65"
-#define BYTE        "16+2*66*4+4*65"
-#define BYTEEND     "20+2*66*4+4*65"
+#define LPS_STATE   "12+2*65*4"
+#define MPS_STATE   "12+2*65*4+2*64"
+#define BYTESTART   "12+2*65*4+4*64"
+#define BYTE        "16+2*65*4+4*64"
+#define BYTEEND     "20+2*65*4+4*64"
 #ifndef BRANCHLESS_CABAD
     asm volatile(
         "movzbl (%1), %%eax                     \n\t"