]> granicus.if.org Git - libvpx/commitdiff
vp8: set y_crop_{width,height}
authorJohn Koleszar <jkoleszar@google.com>
Wed, 3 Apr 2013 19:34:05 +0000 (12:34 -0700)
committerJohn Koleszar <jkoleszar@google.com>
Wed, 3 Apr 2013 19:34:22 +0000 (12:34 -0700)
Update to use the new YV12_BUFFER_CONFIG structure.

Change-Id: Ia64757d50cc9019d336fa622e059bf68140d0fa7

vp8/vp8_cx_iface.c
vp8/vp8_dx_iface.c
vpx_scale/generic/yv12extend.c

index b985cb1b7fa88def67d7fdef3e1e658e809b6701..4531d5ad089ec5dc1d966628c63b9d140e5bb9a1 100644 (file)
@@ -684,6 +684,8 @@ static vpx_codec_err_t image2yuvconfig(const vpx_image_t   *img,
     yv12->u_buffer = img->planes[VPX_PLANE_U];
     yv12->v_buffer = img->planes[VPX_PLANE_V];
 
+    yv12->y_crop_width  = img->d_w;
+    yv12->y_crop_height = img->d_h;
     yv12->y_width  = img->d_w;
     yv12->y_height = img->d_h;
     yv12->uv_width = (1 + yv12->y_width) / 2;
index f3834b063d7410eae3aaa27d6d73d9985a83997a..90a175436dbf517a36d42243de85303deb02f54b 100644 (file)
@@ -790,6 +790,8 @@ static vpx_codec_err_t image2yuvconfig(const vpx_image_t   *img,
     yv12->u_buffer = img->planes[VPX_PLANE_U];
     yv12->v_buffer = img->planes[VPX_PLANE_V];
 
+    yv12->y_crop_width  = img->d_w;
+    yv12->y_crop_height = img->d_h;
     yv12->y_width  = img->d_w;
     yv12->y_height = img->d_h;
     yv12->uv_width = yv12->y_width / 2;
index 49d7e8e560f401425ffc2d90696e49e13a7f5674..a322e0a2c3452f1df5fff41a8d7b7a299acd7d24 100644 (file)
@@ -117,8 +117,13 @@ vp8_yv12_copy_frame_c(YV12_BUFFER_CONFIG *src_ybc,
   int row;
   unsigned char *source, *dest;
 
+#if 0
+  /* These assertions are valid in the codec, but the libvpx-tester uses
+   * this code slightly differently.
+   */
   assert(src_ybc->y_width == dst_ybc->y_width);
   assert(src_ybc->y_height == dst_ybc->y_height);
+#endif
 
   source = src_ybc->y_buffer;
   dest = dst_ybc->y_buffer;