mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 18:48:44 +00:00
video-frame: scale vertical tiles based on subsampling
https://bugzilla.gnome.org/show_bug.cgi?id=707361
This commit is contained in:
parent
53605e35f4
commit
c8597330a9
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue