diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2015-09-28 16:25:28 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-09-28 16:25:28 +0000 |
commit | cc5dd3ec10e6b7765ae69a81a82e4ad4786552fd (patch) | |
tree | b127e26b2c832c8e7e466d32699d7d055ecdd669 /vp10/vp10_iface_common.h | |
parent | 3db5721e213640295a37d3d574639916c2ab1b64 (diff) | |
parent | 812945a8f143df6a627cb292ec7a77a4ed6509f0 (diff) | |
download | libvpx-cc5dd3ec10e6b7765ae69a81a82e4ad4786552fd.tar libvpx-cc5dd3ec10e6b7765ae69a81a82e4ad4786552fd.tar.gz libvpx-cc5dd3ec10e6b7765ae69a81a82e4ad4786552fd.tar.bz2 libvpx-cc5dd3ec10e6b7765ae69a81a82e4ad4786552fd.zip |
Merge "vp9/10: improve support for render_width/height."
Diffstat (limited to 'vp10/vp10_iface_common.h')
-rw-r--r-- | vp10/vp10_iface_common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vp10/vp10_iface_common.h b/vp10/vp10_iface_common.h index 7987d18aa..b2b4b7d8f 100644 --- a/vp10/vp10_iface_common.h +++ b/vp10/vp10_iface_common.h @@ -43,6 +43,8 @@ static void yuvconfig2image(vpx_image_t *img, const YV12_BUFFER_CONFIG *yv12, img->h = ALIGN_POWER_OF_TWO(yv12->y_height + 2 * VP9_ENC_BORDER_IN_PIXELS, 3); img->d_w = yv12->y_crop_width; img->d_h = yv12->y_crop_height; + img->r_w = yv12->render_width; + img->r_h = yv12->render_height; img->x_chroma_shift = yv12->subsampling_x; img->y_chroma_shift = yv12->subsampling_y; img->planes[VPX_PLANE_Y] = yv12->y_buffer; @@ -84,6 +86,8 @@ static vpx_codec_err_t image2yuvconfig(const vpx_image_t *img, yv12->y_crop_width = img->d_w; yv12->y_crop_height = img->d_h; + yv12->render_width = img->r_w; + yv12->render_height = img->r_h; yv12->y_width = img->d_w; yv12->y_height = img->d_h; |