summaryrefslogtreecommitdiff
path: root/vp8/common
diff options
context:
space:
mode:
authorJohn Koleszar <jkoleszar@google.com>2011-07-20 00:05:09 -0400
committerJohn Koleszar <jkoleszar@google.com>2011-07-20 00:05:09 -0400
commit8e464cc4c2d02e5daa68a45830f053c8a236ab6f (patch)
tree9b4a9e62a028aa4abde82b96b2b8eeb2135a350e /vp8/common
parentbf53e74b7f23cd9e55aaf820d7914b0890a16177 (diff)
parentb2d9700f5313770957878fa36f9971c367f479df (diff)
downloadlibvpx-8e464cc4c2d02e5daa68a45830f053c8a236ab6f.tar
libvpx-8e464cc4c2d02e5daa68a45830f053c8a236ab6f.tar.gz
libvpx-8e464cc4c2d02e5daa68a45830f053c8a236ab6f.tar.bz2
libvpx-8e464cc4c2d02e5daa68a45830f053c8a236ab6f.zip
Merge remote branch 'internal/upstream' into HEAD
Diffstat (limited to 'vp8/common')
-rw-r--r--vp8/common/entropy.c28
1 files changed, 26 insertions, 2 deletions
diff --git a/vp8/common/entropy.c b/vp8/common/entropy.c
index 14821e72d..5044c25b9 100644
--- a/vp8/common/entropy.c
+++ b/vp8/common/entropy.c
@@ -26,8 +26,32 @@ typedef vp8_prob Prob;
#include "coefupdateprobs.h"
-DECLARE_ALIGNED(16, cuchar, vp8_coef_bands[16]) = { 0, 1, 2, 3, 6, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7};
-DECLARE_ALIGNED(16, cuchar, vp8_prev_token_class[MAX_ENTROPY_TOKENS]) = { 0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0};
+DECLARE_ALIGNED(16, const unsigned char, vp8_norm[256]) =
+{
+ 0, 7, 6, 6, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 4, 4,
+ 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2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