Remove mv dependency conditions on filter type coding
The final design plan would code the inter prediction filter type
regardless of the motion vector sub pixel conditions. Remove the
unnecessary condition checks in the bit-stream writing and reading.
This is not a normative change.
Change-Id: I12d4e5a5740c0337912c7c543cdadfe0aef56285
diff --git a/av1/common/pred_common.c b/av1/common/pred_common.c
index 4778611..9a20c95 100644
--- a/av1/common/pred_common.c
+++ b/av1/common/pred_common.c
@@ -20,13 +20,10 @@
const MACROBLOCKD *xd, int dir,
MV_REFERENCE_FRAME ref_frame) {
const MB_MODE_INFO *ref_mbmi = &mi->mbmi;
- int use_subpel[2] = {
- has_subpel_mv_component(mi, xd, dir),
- has_subpel_mv_component(mi, xd, dir + 2),
- };
+ (void)xd;
- return (((ref_mbmi->ref_frame[0] == ref_frame && use_subpel[0]) ||
- (ref_mbmi->ref_frame[1] == ref_frame && use_subpel[1]))
+ return ((ref_mbmi->ref_frame[0] == ref_frame ||
+ ref_mbmi->ref_frame[1] == ref_frame)
? av1_extract_interp_filter(ref_mbmi->interp_filters, dir & 0x01)
: SWITCHABLE_FILTERS);
}