remove unused simple loopfilter parameters
authorJohann <johannkoenig@google.com>
Mon, 4 Nov 2019 20:52:17 +0000 (14:52 -0600)
committerJohann <johannkoenig@google.com>
Mon, 4 Nov 2019 20:52:17 +0000 (14:52 -0600)
The simple filter only processes the Y plane.

BUG=webm:1612

Change-Id: I9886ff43ea7f621d8915846cb65f609a9298566d

vp8/common/loopfilter.h
vp8/common/vp8_loopfilter.c
vp8/decoder/decodeframe.c

index 03b23af..909e8df 100644 (file)
@@ -93,9 +93,7 @@ void vp8_loop_filter_row_normal(struct VP8Common *cm,
 
 void vp8_loop_filter_row_simple(struct VP8Common *cm,
                                 struct modeinfo *mode_info_context, int mb_row,
-                                int post_ystride, int post_uvstride,
-                                unsigned char *y_ptr, unsigned char *u_ptr,
-                                unsigned char *v_ptr);
+                                int post_ystride, unsigned char *y_ptr);
 #ifdef __cplusplus
 }  // extern "C"
 #endif
index 9fb1250..9c9e5f3 100644 (file)
@@ -219,13 +219,11 @@ void vp8_loop_filter_row_normal(VP8_COMMON *cm, MODE_INFO *mode_info_context,
 }
 
 void vp8_loop_filter_row_simple(VP8_COMMON *cm, MODE_INFO *mode_info_context,
-                                int mb_row, int post_ystride, int post_uvstride,
-                                unsigned char *y_ptr, unsigned char *u_ptr,
-                                unsigned char *v_ptr) {
+                                int mb_row, int post_ystride,
+                                unsigned char *y_ptr) {
   int mb_col;
   int filter_level;
   loop_filter_info_n *lfi_n = &cm->lf_info;
-  (void)post_uvstride;
 
   for (mb_col = 0; mb_col < cm->mb_cols; ++mb_col) {
     int skip_lf = (mode_info_context->mbmi.mode != B_PRED &&
@@ -258,8 +256,6 @@ void vp8_loop_filter_row_simple(VP8_COMMON *cm, MODE_INFO *mode_info_context,
     }
 
     y_ptr += 16;
-    u_ptr += 8;
-    v_ptr += 8;
 
     mode_info_context++; /* step to next MB */
   }
index b26b1ae..67c254f 100644 (file)
@@ -610,8 +610,7 @@ static void decode_mb_rows(VP8D_COMP *pbi) {
                                      lf_dst[2]);
         } else {
           vp8_loop_filter_row_simple(pc, lf_mic, mb_row - 1, recon_y_stride,
-                                     recon_uv_stride, lf_dst[0], lf_dst[1],
-                                     lf_dst[2]);
+                                     lf_dst[0]);
         }
         if (mb_row > 1) {
           yv12_extend_frame_left_right_c(yv12_fb_new, eb_dst[0], eb_dst[1],
@@ -647,8 +646,7 @@ static void decode_mb_rows(VP8D_COMP *pbi) {
                                  lf_dst[2]);
     } else {
       vp8_loop_filter_row_simple(pc, lf_mic, mb_row - 1, recon_y_stride,
-                                 recon_uv_stride, lf_dst[0], lf_dst[1],
-                                 lf_dst[2]);
+                                 lf_dst[0]);
     }
 
     yv12_extend_frame_left_right_c(yv12_fb_new, eb_dst[0], eb_dst[1],