shithub: libvpx

Download patch

ref: a9bbabd94b30f4b065542e859a3353a394f41fe6
parent: 719cd35f3ac798bc7387f9d012877e4a50d3f67a
parent: db7f5d28b96276ccf9615f36c847e7bfe6c61f1e
author: Dmitry Kovalev <[email protected]>
date: Tue Jul 23 11:01:19 EDT 2013

Merge "Removing vp9_is_interpolating_filter array."

--- a/vp9/common/vp9_entropymode.c
+++ b/vp9/common/vp9_entropymode.c
@@ -347,9 +347,6 @@
   EIGHTTAP, EIGHTTAP_SMOOTH, EIGHTTAP_SHARP};
 const int vp9_switchable_interp_map[SWITCHABLE + 1] = {1, 0, 2, -1, -1};
 
-// Indicates if the filter is interpolating or non-interpolating
-const int vp9_is_interpolating_filter[SWITCHABLE + 1] = {1, 1, 1, 1, -1};
-
 void vp9_entropy_mode_init() {
   vp9_tokens_from_tree(vp9_intra_mode_encodings, vp9_intra_mode_tree);
   vp9_tokens_from_tree(vp9_switchable_interp_encodings,
--- a/vp9/common/vp9_entropymode.h
+++ b/vp9/common/vp9_entropymode.h
@@ -53,7 +53,6 @@
                  [VP9_SWITCHABLE_FILTERS];
 
 extern const int vp9_switchable_interp_map[SWITCHABLE + 1];
-extern const int vp9_is_interpolating_filter[SWITCHABLE + 1];
 
 extern const vp9_tree_index vp9_switchable_interp_tree
                  [2 * (VP9_SWITCHABLE_FILTERS - 1)];
--- a/vp9/encoder/vp9_rdopt.c
+++ b/vp9/encoder/vp9_rdopt.c
@@ -2900,8 +2900,7 @@
       int j;
       int64_t rs_rd;
       const INTERPOLATIONFILTERTYPE filter = vp9_switchable_interp[i];
-      const int is_intpel_interp = intpel_mv &&
-          vp9_is_interpolating_filter[filter];
+      const int is_intpel_interp = intpel_mv;
       mbmi->interp_filter = filter;
       vp9_setup_interp_filters(xd, mbmi->interp_filter, cm);
       rs = get_switchable_rate(cm, x);