Index: source/libvpx/vp9/vp9_iface_common.h |
=================================================================== |
--- source/libvpx/vp9/vp9_iface_common.h (revision 285372) |
+++ source/libvpx/vp9/vp9_iface_common.h (working copy) |
@@ -41,11 +41,11 @@ |
img->planes[VPX_PLANE_Y] = yv12->y_buffer; |
img->planes[VPX_PLANE_U] = yv12->u_buffer; |
img->planes[VPX_PLANE_V] = yv12->v_buffer; |
- img->planes[VPX_PLANE_ALPHA] = yv12->alpha_buffer; |
+ img->planes[VPX_PLANE_ALPHA] = NULL; |
img->stride[VPX_PLANE_Y] = yv12->y_stride; |
img->stride[VPX_PLANE_U] = yv12->uv_stride; |
img->stride[VPX_PLANE_V] = yv12->uv_stride; |
- img->stride[VPX_PLANE_ALPHA] = yv12->alpha_stride; |
+ img->stride[VPX_PLANE_ALPHA] = yv12->y_stride; |
img->bps = bps; |
img->user_priv = user_priv; |
img->img_data = yv12->buffer_alloc; |
@@ -58,7 +58,6 @@ |
yv12->y_buffer = img->planes[VPX_PLANE_Y]; |
yv12->u_buffer = img->planes[VPX_PLANE_U]; |
yv12->v_buffer = img->planes[VPX_PLANE_V]; |
- yv12->alpha_buffer = img->planes[VPX_PLANE_ALPHA]; |
yv12->y_crop_width = img->d_w; |
yv12->y_crop_height = img->d_h; |
@@ -70,21 +69,10 @@ |
yv12->uv_height = img->y_chroma_shift == 1 ? (1 + yv12->y_height) / 2 |
: yv12->y_height; |
- yv12->alpha_width = yv12->alpha_buffer ? img->d_w : 0; |
- yv12->alpha_height = yv12->alpha_buffer ? img->d_h : 0; |
- |
yv12->y_stride = img->stride[VPX_PLANE_Y]; |
yv12->uv_stride = img->stride[VPX_PLANE_U]; |
- yv12->alpha_stride = yv12->alpha_buffer ? img->stride[VPX_PLANE_ALPHA] : 0; |
yv12->border = (img->stride[VPX_PLANE_Y] - img->w) / 2; |
-#if CONFIG_ALPHA |
- // For development purposes, force alpha to hold the same data as Y for now. |
- yv12->alpha_buffer = yv12->y_buffer; |
- yv12->alpha_width = yv12->y_width; |
- yv12->alpha_height = yv12->y_height; |
- yv12->alpha_stride = yv12->y_stride; |
-#endif |
return VPX_CODEC_OK; |
} |