video-frame: scale vertical tiles based on subsampling
authorNicolas Dufresne <nicolas.dufresne at collabora.co.uk>
Fri, 3 Jan 2014 21:29:09 +0000 (22:29 +0100)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Mon, 13 Jan 2014 15:46:45 +0000 (10:46 -0500)
https://bugzilla.gnome.org/show_bug.cgi?id=707361

gst-libs/gst/video/video-frame.c

index 99efabee1da1da259212c52cbe3f1d65392ea579..f8042af51232d679b69cd8a22d3fe7ab296321a7 100644 (file)
@@ -274,10 +274,12 @@ gst_video_frame_copy_plane (GstVideoFrame * dest, const GstVideoFrame * src,
     mode = finfo->pixel_stride[GST_VIDEO_COMP_TILEINFO];
 
     sx_tiles = sinfo->stride[plane] >> ws;
-    sy_tiles = sinfo->stride[tidx];
+    sy_tiles = GST_VIDEO_FORMAT_INFO_SCALE_HEIGHT (finfo, plane,
+        sinfo->stride[tidx]);
 
     dx_tiles = dinfo->stride[plane] >> ws;
-    dy_tiles = dinfo->stride[tidx];
+    dy_tiles = GST_VIDEO_FORMAT_INFO_SCALE_HEIGHT (finfo, plane,
+        dinfo->stride[tidx]);
 
     /* this is the amount of tiles to copy */
     w = ((w - 1) >> ws) + 1;