summaryrefslogtreecommitdiff
path: root/vp8/encoder/rdopt.c
diff options
context:
space:
mode:
authorPaul Wilkins <paulwilkins@google.com>2011-01-14 14:52:15 +0000
committerPaul Wilkins <paulwilkins@google.com>2011-01-14 15:20:45 +0000
commit415371c9d99639258e9e4546bda45fe889a79ef3 (patch)
tree08fa7aca8ff5ba2bfc0b732fa894dc4cfccfdc41 /vp8/encoder/rdopt.c
parent72e22b0bb8d66c37d57bccb95c9c43660e080745 (diff)
downloadlibvpx-415371c9d99639258e9e4546bda45fe889a79ef3.tar
libvpx-415371c9d99639258e9e4546bda45fe889a79ef3.tar.gz
libvpx-415371c9d99639258e9e4546bda45fe889a79ef3.tar.bz2
libvpx-415371c9d99639258e9e4546bda45fe889a79ef3.zip
Testing of modes with Alt Ref frame
Previously when a frame was being overlaid on a previously coded alt ref frame we only checked the alt ref 0,0 mode. Where there is a possibility that the alt ref buffer is a filtered frame we should allow the other prediction modes as normal or at the least allow use of the last frame buffer. Change-Id: I4d6227223d125c96b4f3066ec6ec9484fee7768c
Diffstat (limited to 'vp8/encoder/rdopt.c')
-rw-r--r--vp8/encoder/rdopt.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/vp8/encoder/rdopt.c b/vp8/encoder/rdopt.c
index 8598fc6ea..b2a3e117f 100644
--- a/vp8/encoder/rdopt.c
+++ b/vp8/encoder/rdopt.c
@@ -1852,8 +1852,7 @@ int vp8_rd_pick_inter_mode(VP8_COMP *cpi, MACROBLOCK *x, int recon_yoffset, int
// Only consider ZEROMV/ALTREF_FRAME for alt ref frame,
// unless ARNR filtering is enabled in which case we want
// an unfiltered alternative
- //if (cpi->is_src_frame_alt_ref && (cpi->oxcf.arnr_max_frames > 0))
- if (cpi->is_src_frame_alt_ref)
+ if (cpi->is_src_frame_alt_ref && (cpi->oxcf.arnr_max_frames == 0))
{
if (this_mode != ZEROMV || x->e_mbd.mode_info_context->mbmi.ref_frame != ALTREF_FRAME)
continue;