Remove vp9_extend_mb_row()
authorJohn Koleszar <jkoleszar@google.com>
Thu, 16 May 2013 18:48:34 +0000 (11:48 -0700)
committerJohn Koleszar <jkoleszar@google.com>
Thu, 16 May 2013 18:56:00 +0000 (11:56 -0700)
This code is no longer needed for correct intra prediction.

Change-Id: I822d1a8b0ad0a00e7c4c6e7b2931790c39d1267d

vp9/common/vp9_extend.c
vp9/common/vp9_extend.h
vp9/encoder/vp9_encodeframe.c
vp9/encoder/vp9_firstpass.c

index 1dcf0e1..6aeadf6 100644 (file)
@@ -119,29 +119,3 @@ void vp9_copy_and_extend_frame_with_rect(const YV12_BUFFER_CONFIG *src,
                         srcw_uv, srch_uv,
                         et_uv, el_uv, eb_uv, er_uv);
 }
-
-// note the extension is only for the last row, for intra prediction purpose
-void vp9_extend_mb_row(YV12_BUFFER_CONFIG *buf,
-                       uint8_t *y, uint8_t *u, uint8_t *v) {
-  int i;
-
-  y += buf->y_stride * 14;
-  u += buf->uv_stride * 6;
-  v += buf->uv_stride * 6;
-
-  for (i = 0; i < 4; i++) {
-    y[i] = y[-1];
-    u[i] = u[-1];
-    v[i] = v[-1];
-  }
-
-  y += buf->y_stride;
-  u += buf->uv_stride;
-  v += buf->uv_stride;
-
-  for (i = 0; i < 4; i++) {
-    y[i] = y[-1];
-    u[i] = u[-1];
-    v[i] = v[-1];
-  }
-}
index 6ec75c9..7ff79b7 100644 (file)
@@ -22,9 +22,4 @@ void vp9_copy_and_extend_frame_with_rect(const YV12_BUFFER_CONFIG *src,
                                          YV12_BUFFER_CONFIG *dst,
                                          int srcy, int srcx,
                                          int srch, int srcw);
-
-void vp9_extend_mb_row(YV12_BUFFER_CONFIG *buf,
-                       uint8_t *y, uint8_t *u, uint8_t *v);
-
-
 #endif  // VP9_COMMON_VP9_EXTEND_H_
index 954eefa..ae1e3f5 100644 (file)
@@ -298,13 +298,6 @@ static void build_activity_map(VP9_COMP *cpi) {
 
     // adjust to the next row of mbs
     x->plane[0].src.buf += 16 * x->plane[0].src.stride - 16 * cm->mb_cols;
-
-#if ALT_ACT_MEASURE
-    // extend the recon for intra prediction
-    vp9_extend_mb_row(new_yv12, xd->plane[0].dst.buf + 16,
-                      xd->plane[1].dst.buf + 8, xd->plane[2].dst.buf + 8);
-#endif
-
   }
 
   // Calculate an "average" MB activity
index 367ebec..5ec6966 100644 (file)
@@ -688,9 +688,6 @@ void vp9_first_pass(VP9_COMP *cpi) {
     x->plane[1].src.buf += 8 * x->plane[1].src.stride - 8 * cm->mb_cols;
     x->plane[2].src.buf += 8 * x->plane[1].src.stride - 8 * cm->mb_cols;
 
-    // extend the recon for intra prediction
-    vp9_extend_mb_row(new_yv12, xd->plane[0].dst.buf + 16,
-                      xd->plane[1].dst.buf + 8, xd->plane[2].dst.buf + 8);
     vp9_clear_system_state();  // __asm emms;
   }