summaryrefslogtreecommitdiff
path: root/vp8/encoder
diff options
context:
space:
mode:
authorYaowu Xu <yaowu@google.com>2011-06-22 15:07:04 -0700
committerYaowu Xu <yaowu@google.com>2011-06-23 09:19:44 -0700
commit7793b386a7007d72f78942ef7f41eb2eeb0410b5 (patch)
tree39f269387d74beec3a0b9230967bfb79b6062e14 /vp8/encoder
parent786246ebf1fd4b875f33a8b0c35bab2a3df911b3 (diff)
downloadlibvpx-7793b386a7007d72f78942ef7f41eb2eeb0410b5.tar
libvpx-7793b386a7007d72f78942ef7f41eb2eeb0410b5.tar.gz
libvpx-7793b386a7007d72f78942ef7f41eb2eeb0410b5.tar.bz2
libvpx-7793b386a7007d72f78942ef7f41eb2eeb0410b5.zip
fix build issues for experimental branch
experimental branch build was broken from some merge artifacts, this commit fixes those issues to enable the experimental branch to build. Change-Id: Ic52b2d2f1d1b80abb7ecaa4c0927bcf887ac0c2a
Diffstat (limited to 'vp8/encoder')
-rw-r--r--vp8/encoder/rdopt.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/vp8/encoder/rdopt.c b/vp8/encoder/rdopt.c
index 9173272fc..f0ddf44fa 100644
--- a/vp8/encoder/rdopt.c
+++ b/vp8/encoder/rdopt.c
@@ -630,7 +630,12 @@ static void macro_block_yrd( MACROBLOCK *mb,
// Distortion
d = ENCODEMB_INVOKE(rtcd, mberr)(mb, 1) << 2;
+
+#if CONFIG_EXTEND_QRANGE
+ d += ENCODEMB_INVOKE(rtcd, berr)(mb_y2->coeff, x_y2->dqcoeff)<<2;
+#else
d += ENCODEMB_INVOKE(rtcd, berr)(mb_y2->coeff, x_y2->dqcoeff);
+#endif
*Distortion = (d >> 4);
@@ -1049,10 +1054,7 @@ static unsigned int vp8_encode_inter_mb_segment(MACROBLOCK *x, int const *labels
return distortion;
}
-#if CONFIG_EXTEND_QRANGE
- d += ENCODEMB_INVOKE(rtcd, berr)(mb_y2->coeff, x_y2->dqcoeff)<<2;
-#else
-#endif
+
static const unsigned int segmentation_to_sseshift[4] = {3, 3, 2, 0};