summaryrefslogtreecommitdiff
path: root/vp8/vp8_dx_iface.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2015-09-25 21:51:55 -0400
committerRonald S. Bultje <rsbultje@gmail.com>2015-09-25 22:18:22 -0400
commit812945a8f143df6a627cb292ec7a77a4ed6509f0 (patch)
tree8cabd19e160197c6292562cc187ee235c74e5413 /vp8/vp8_dx_iface.c
parent36ffe64498d784757b0dacf5f359ac4e403f14da (diff)
downloadlibvpx-812945a8f143df6a627cb292ec7a77a4ed6509f0.tar
libvpx-812945a8f143df6a627cb292ec7a77a4ed6509f0.tar.gz
libvpx-812945a8f143df6a627cb292ec7a77a4ed6509f0.tar.bz2
libvpx-812945a8f143df6a627cb292ec7a77a4ed6509f0.zip
vp9/10: improve support for render_width/height.
In the decoder, map this to the output variable vpx_image_t.r_w/h. This is intended as an improved version of VP9D_GET_DISPLAY_SIZE, which doesn't work with parallel frame decoding. In the encoder, map this to a codec control func (VP9E_SET_RENDER_SIZE) that takes a w/h pair argument in a int[2] (identical to VP9D_GET_DISPLAY_SIZE). Also add render_size to the encoder_param_get_to_decoder unit test. See issue 1030. Change-Id: I12124c13602d832bf4c44090db08c1009c94c7e8
Diffstat (limited to 'vp8/vp8_dx_iface.c')
-rw-r--r--vp8/vp8_dx_iface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vp8/vp8_dx_iface.c b/vp8/vp8_dx_iface.c
index 99e51c43d..a12a2ad0e 100644
--- a/vp8/vp8_dx_iface.c
+++ b/vp8/vp8_dx_iface.c
@@ -246,8 +246,8 @@ static void yuvconfig2image(vpx_image_t *img,
img->fmt = VPX_IMG_FMT_I420;
img->w = yv12->y_stride;
img->h = (yv12->y_height + 2 * VP8BORDERINPIXELS + 15) & ~15;
- img->d_w = yv12->y_width;
- img->d_h = yv12->y_height;
+ img->d_w = img->r_w = yv12->y_width;
+ img->d_h = img->r_h = yv12->y_height;
img->x_chroma_shift = 1;
img->y_chroma_shift = 1;
img->planes[VPX_PLANE_Y] = yv12->y_buffer;