summaryrefslogtreecommitdiff
path: root/vp9/encoder/vp9_onyx_if.c
diff options
context:
space:
mode:
authorDeb Mukherjee <debargha@google.com>2013-11-05 17:25:38 -0800
committerDeb Mukherjee <debargha@google.com>2013-11-12 10:13:27 -0800
commit5ade423774690e2bf877559dc1a1f9547db5dac1 (patch)
tree877a9fa9e499faaa5acccec5c2eb1c67cc6ea1e5 /vp9/encoder/vp9_onyx_if.c
parente5ed605f01f8b75a8e7db1561bdbb373f8040de3 (diff)
downloadlibvpx-5ade423774690e2bf877559dc1a1f9547db5dac1.tar
libvpx-5ade423774690e2bf877559dc1a1f9547db5dac1.tar.gz
libvpx-5ade423774690e2bf877559dc1a1f9547db5dac1.tar.bz2
libvpx-5ade423774690e2bf877559dc1a1f9547db5dac1.zip
Removes conditional statements from band getting
Implements scan order to band map with arrays in both the encoder and decoder to remove conditional statements. Encoding seems to be about 1% faster at speed 0, tested on football. Decoding seems to be about 0.5-1% faster on a set of 25 videos. Change-Id: Idb233ca0b9e0efd790e30880642e8717e1c5c8dd
Diffstat (limited to 'vp9/encoder/vp9_onyx_if.c')
-rw-r--r--vp9/encoder/vp9_onyx_if.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/vp9/encoder/vp9_onyx_if.c b/vp9/encoder/vp9_onyx_if.c
index f4106934c..7603ac03d 100644
--- a/vp9/encoder/vp9_onyx_if.c
+++ b/vp9/encoder/vp9_onyx_if.c
@@ -1223,6 +1223,13 @@ static void init_config(VP9_PTR ptr, VP9_CONFIG *oxcf) {
cpi->fixed_divide[0] = 0;
for (i = 1; i < 512; i++)
cpi->fixed_divide[i] = 0x80000 / i;
+
+ vpx_memset(cpi->mb.coefband_trans_8x8plus,
+ (COEF_BANDS-1),
+ sizeof(cpi->mb.coefband_trans_8x8plus));
+ vpx_memcpy(cpi->mb.coefband_trans_8x8plus,
+ vp9_coefband_trans_8x8plus,
+ sizeof(vp9_coefband_trans_8x8plus));
}