ref: de6ec27d1a13301dd101182c954d3ec0b4e0e31d
parent: b12a8dac98aa90d08d094d0a3709ef3eddf32092
author: Paul Wilkins <[email protected]>
date: Mon Jun 10 14:19:25 EDT 2013
Rd check on segment level reference mode. Do not allow the rd code to check compound modes if a segment level reference frame is selected. Change-Id: I95f0c57789e0eaceed7caf227e94b4ba3130a06c
--- a/vp9/encoder/vp9_rdopt.c
+++ b/vp9/encoder/vp9_rdopt.c
@@ -2580,6 +2580,12 @@
cpi->rd_threshes[bsize][mode_index] == INT_MAX)
continue;
+ // Do not allow compound prediction if the segment level reference
+ // frame feature is in use as in this case there can only be one reference.
+ if ((vp9_mode_order[mode_index].second_ref_frame > INTRA_FRAME) &&
+ vp9_segfeature_active(xd, segment_id, SEG_LVL_REF_FRAME))
+ continue;
+
x->skip = 0;
this_mode = vp9_mode_order[mode_index].mode;
ref_frame = vp9_mode_order[mode_index].ref_frame;