diff options
author | John Koleszar <jkoleszar@google.com> | 2011-07-20 00:05:16 -0400 |
---|---|---|
committer | John Koleszar <jkoleszar@google.com> | 2011-07-20 00:05:17 -0400 |
commit | 6907117175b2b1d913fc37877647c4e70d803a85 (patch) | |
tree | 347f403ece406dd534899877f513481ecf8feda7 /vp8/decoder | |
parent | 2614b77fcb415d37383fbd970bddc29785f7cc74 (diff) | |
parent | b2d9700f5313770957878fa36f9971c367f479df (diff) | |
download | libvpx-6907117175b2b1d913fc37877647c4e70d803a85.tar libvpx-6907117175b2b1d913fc37877647c4e70d803a85.tar.gz libvpx-6907117175b2b1d913fc37877647c4e70d803a85.tar.bz2 libvpx-6907117175b2b1d913fc37877647c4e70d803a85.zip |
Merge remote branch 'origin/master' into experimental
Change-Id: I956822324c046c254806dd712a2d3be4dcf8564b
Diffstat (limited to 'vp8/decoder')
-rw-r--r-- | vp8/decoder/arm/armv5/dequantize_v5.asm | 52 | ||||
-rw-r--r-- | vp8/decoder/dboolhuff.c | 13 | ||||
-rw-r--r-- | vp8/decoder/dboolhuff.h | 4 | ||||
-rw-r--r-- | vp8/decoder/detokenize.c | 4 |
4 files changed, 4 insertions, 69 deletions
diff --git a/vp8/decoder/arm/armv5/dequantize_v5.asm b/vp8/decoder/arm/armv5/dequantize_v5.asm deleted file mode 100644 index de3648ae2..000000000 --- a/vp8/decoder/arm/armv5/dequantize_v5.asm +++ /dev/null @@ -1,52 +0,0 @@ -; -; Copyright (c) 2010 The WebM project authors. All Rights Reserved. -; -; Use of this source code is governed by a BSD-style license -; that can be found in the LICENSE file in the root of the source -; tree. An additional intellectual property rights grant can be found -; in the file PATENTS. All contributing project authors may -; be found in the AUTHORS file in the root of the source tree. -; - - - EXPORT |vp8_dequantize_b_armv5| - - AREA |.text|, CODE, READONLY ; name this block of code - -q RN r0 -dqc RN r1 -cnt RN r2 - -;void dequantize_b_armv5(short *Q, short *DQC) -|vp8_dequantize_b_armv5| PROC - stmdb sp!, {r4, lr} - ldr r3, [q] - ldr r4, [dqc], #8 - - mov cnt, #4 -dequant_loop - smulbb lr, r3, r4 - smultt r12, r3, r4 - - ldr r3, [q, #4] - ldr r4, [dqc, #-4] - - strh lr, [q], #2 - strh r12, [q], #2 - - smulbb lr, r3, r4 - smultt r12, r3, r4 - - subs cnt, cnt, #1 - ldrne r3, [q, #4] - ldrne r4, [dqc], #8 - - strh lr, [q], #2 - strh r12, [q], #2 - - bne dequant_loop - - ldmia sp!, {r4, pc} - ENDP ;|vp8_dequantize_b_arm| - - END diff --git a/vp8/decoder/dboolhuff.c b/vp8/decoder/dboolhuff.c index 8527d51e8..7e7b05aa6 100644 --- a/vp8/decoder/dboolhuff.c +++ b/vp8/decoder/dboolhuff.c @@ -13,19 +13,6 @@ #include "vpx_ports/mem.h" #include "vpx_mem/vpx_mem.h" -DECLARE_ALIGNED(16, const unsigned char, vp8dx_bitreader_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, 2, 2, 2, 2, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 -}; - - int vp8dx_start_decode(BOOL_DECODER *br, const unsigned char *source, unsigned int source_sz) diff --git a/vp8/decoder/dboolhuff.h b/vp8/decoder/dboolhuff.h index f729837f9..853c10f14 100644 --- a/vp8/decoder/dboolhuff.h +++ b/vp8/decoder/dboolhuff.h @@ -34,7 +34,7 @@ typedef struct unsigned int range; } BOOL_DECODER; -DECLARE_ALIGNED(16, extern const unsigned char, vp8dx_bitreader_norm[256]); +DECLARE_ALIGNED(16, extern const unsigned char, vp8_norm[256]); int vp8dx_start_decode(BOOL_DECODER *br, const unsigned char *source, @@ -101,7 +101,7 @@ static int vp8dx_decode_bool(BOOL_DECODER *br, int probability) { } { - register unsigned int shift = vp8dx_bitreader_norm[range]; + register unsigned int shift = vp8_norm[range]; range <<= shift; value <<= shift; count -= shift; diff --git a/vp8/decoder/detokenize.c b/vp8/decoder/detokenize.c index 2d050512a..78d583782 100644 --- a/vp8/decoder/detokenize.c +++ b/vp8/decoder/detokenize.c @@ -80,7 +80,7 @@ void vp8_reset_mb_tokens_context(MACROBLOCKD *x) } } -DECLARE_ALIGNED(16, extern const unsigned char, vp8dx_bitreader_norm[256]); +DECLARE_ALIGNED(16, extern const unsigned char, vp8_norm[256]); #define FILL \ if(count < 0) \ VP8DX_BOOL_DECODER_FILL(count, value, bufptr, bufend); @@ -88,7 +88,7 @@ DECLARE_ALIGNED(16, extern const unsigned char, vp8dx_bitreader_norm[256]); #define NORMALIZE \ /*if(range < 0x80)*/ \ { \ - shift = vp8dx_bitreader_norm[range]; \ + shift = vp8_norm[range]; \ range <<= shift; \ value <<= shift; \ count -= shift; \ |