shithub: libvpx

Download patch

ref: 9c19953763c139cfe0ee94fc94ac3c285e151d3c
parent: 36ddfa9d0054cc13aa30a5a60f395a363904ba95
author: Alex Converse <[email protected]>
date: Fri Jan 17 09:01:53 EST 2014

Fix output cropping in vp9_get_preview_raw_frame.

Handle the non-420 case and set uv_width.

This is needed to get the correct colorspace information out of
vp9e_get_preview().

Change-Id: I62ce118cd7082708d812deb0843c1be87582e0fe

--- a/vp9/encoder/vp9_onyx_if.c
+++ b/vp9/encoder/vp9_onyx_if.c
@@ -3689,7 +3689,8 @@
       *dest = *cpi->common.frame_to_show;
       dest->y_width = cpi->common.width;
       dest->y_height = cpi->common.height;
-      dest->uv_height = cpi->common.height / 2;
+      dest->uv_width = cpi->common.width >> cpi->common.subsampling_x;
+      dest->uv_height = cpi->common.height >> cpi->common.subsampling_y;
       ret = 0;
     } else {
       ret = -1;