summaryrefslogtreecommitdiffstats
path: root/libvpx/vp8/encoder/rdopt.c
diff options
context:
space:
mode:
authorVignesh Venkatasubramanian <vigneshv@google.com>2014-03-27 00:50:12 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-03-27 00:50:12 +0000
commit7616a7e29066d65ecd1d6f54485360d3964c67bb (patch)
treec051eed430b02e9a3b5275d65969e25b024e2733 /libvpx/vp8/encoder/rdopt.c
parentb2e48fbeea3ad651e5e1d00770cb3609c60bb3e7 (diff)
parent2ec72e65689c948e92b826ae1e867bf369e72f13 (diff)
downloadandroid_external_libvpx-7616a7e29066d65ecd1d6f54485360d3964c67bb.tar.gz
android_external_libvpx-7616a7e29066d65ecd1d6f54485360d3964c67bb.tar.bz2
android_external_libvpx-7616a7e29066d65ecd1d6f54485360d3964c67bb.zip
am 2ec72e65: libvpx: Roll latest libvpx
* commit '2ec72e65689c948e92b826ae1e867bf369e72f13': libvpx: Roll latest libvpx
Diffstat (limited to 'libvpx/vp8/encoder/rdopt.c')
-rw-r--r--libvpx/vp8/encoder/rdopt.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/libvpx/vp8/encoder/rdopt.c b/libvpx/vp8/encoder/rdopt.c
index 5016cc4..387701c 100644
--- a/libvpx/vp8/encoder/rdopt.c
+++ b/libvpx/vp8/encoder/rdopt.c
@@ -528,19 +528,16 @@ static int cost_coeffs(MACROBLOCK *mb, BLOCKD *b, int type, ENTROPY_CONTEXT *a,
VP8_COMBINEENTROPYCONTEXTS(pt, *a, *l);
-# define QC( I) ( qcoeff_ptr [vp8_default_zig_zag1d[I]] )
-
+ assert(eob <= 16);
for (; c < eob; c++)
{
- int v = QC(c);
- int t = vp8_dct_value_tokens_ptr[v].Token;
+ const int v = qcoeff_ptr[vp8_default_zig_zag1d[c]];
+ const int t = vp8_dct_value_tokens_ptr[v].Token;
cost += mb->token_costs [type] [vp8_coef_bands[c]] [pt] [t];
cost += vp8_dct_value_cost_ptr[v];
pt = vp8_prev_token_class[t];
}
-# undef QC
-
if (c < 16)
cost += mb->token_costs [type] [vp8_coef_bands[c]] [pt] [DCT_EOB_TOKEN];