]> granicus.if.org Git - libvpx/commitdiff
Removed mcomp_filter_type
authorScott LaVarnway <slavarnway@google.com>
Mon, 23 Apr 2012 17:23:21 +0000 (13:23 -0400)
committerScott LaVarnway <slavarnway@google.com>
Mon, 23 Apr 2012 17:23:21 +0000 (13:23 -0400)
and replaced with use_bilinear_mc_filter.

Change-Id: Ie9e9f0bccca4ab7d3e23ae045aefed33536103ff

vp8/common/onyxc_int.h
vp8/decoder/decodframe.c
vp8/encoder/encodeframe.c
vp8/encoder/onyx_if.c

index 2387b9d0953d4198b181b5a6a071dbe5775a2929..0e4c9be2f92894c2c668eca94b4d5a27ce00b029 100644 (file)
@@ -59,12 +59,6 @@ typedef enum
     RECON_CLAMP_NOTREQUIRED     = 1
 } CLAMP_TYPE;
 
-typedef enum
-{
-    SIXTAP   = 0,
-    BILINEAR = 1
-} INTERPOLATIONFILTERTYPE;
-
 typedef struct VP8Common
 
 {
@@ -134,7 +128,6 @@ typedef struct VP8Common
     MODE_INFO *prev_mi;  /* 'mi' from last frame (points into prev_mip) */
 
 
-    INTERPOLATIONFILTERTYPE mcomp_filter_type;
     LOOPFILTERTYPE filter_type;
 
     loop_filter_info_n lf_info;
index b9cea7e7652269e87bff5932445729238752b3b7..3332f67024fe41ba30dbc0f6d3c0d558aae6b3be 100644 (file)
@@ -684,13 +684,8 @@ static void init_frame(VP8D_COMP *pbi)
     }
     else
     {
-        if (!pc->use_bilinear_mc_filter)
-            pc->mcomp_filter_type = SIXTAP;
-        else
-            pc->mcomp_filter_type = BILINEAR;
-
         /* To enable choice of different interploation filters */
-        if (pc->mcomp_filter_type == SIXTAP)
+        if (!pc->use_bilinear_mc_filter)
         {
             xd->subpixel_predict        = vp8_sixtap_predict4x4;
             xd->subpixel_predict8x4     = vp8_sixtap_predict8x4;
index 962a719c8d706296447da855db2f045a5ce9e7a7..1f40197725850168e3234a65baf1a63c9167bf2a 100644 (file)
@@ -695,7 +695,7 @@ void vp8_encode_frame(VP8_COMP *cpi)
     }
 
     // Functions setup for all frame types so we can use MC in AltRef
-    if (cm->mcomp_filter_type == SIXTAP)
+    if(!cm->use_bilinear_mc_filter)
     {
         xd->subpixel_predict        = vp8_sixtap_predict4x4;
         xd->subpixel_predict8x4     = vp8_sixtap_predict8x4;
index 69b88a8da979067cb7b2e031f2cf77b06b46c32b..06887f8eb0fa951728457f44bf33bd58f0aeded4 100644 (file)
@@ -1595,11 +1595,6 @@ void vp8_change_config(VP8_COMP *cpi, VP8_CONFIG *oxcf)
     // Only allow dropped frames in buffered mode
     cpi->drop_frames_allowed = cpi->oxcf.allow_df && cpi->buffered_mode;
 
-    if (!cm->use_bilinear_mc_filter)
-        cm->mcomp_filter_type = SIXTAP;
-    else
-        cm->mcomp_filter_type = BILINEAR;
-
     cpi->target_bandwidth = cpi->oxcf.target_bandwidth;