mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
v4l2codecs: Port to the new tile size helper
This will complete the scaling of width/height shift scaling as only a partial implementation was made. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2190>
This commit is contained in:
parent
6a6c3687f1
commit
ab839f3642
1 changed files with 2 additions and 7 deletions
|
@ -79,14 +79,9 @@ set_stride (GstVideoInfo * info, gint plane, gint stride)
|
|||
const GstVideoFormatInfo *finfo = info->finfo;
|
||||
|
||||
if (GST_VIDEO_FORMAT_INFO_IS_TILED (finfo)) {
|
||||
gint x_tiles, y_tiles, ws, hs, padded_height;
|
||||
guint x_tiles, y_tiles, ws, hs, padded_height;
|
||||
|
||||
ws = GST_VIDEO_FORMAT_INFO_TILE_WS (finfo);
|
||||
hs = GST_VIDEO_FORMAT_INFO_TILE_HS (finfo);
|
||||
|
||||
/* this only works for what we support, NV12 subsampled tiles */
|
||||
if (GST_VIDEO_FORMAT_INFO_HAS_SUBTILES (finfo) && plane == 1)
|
||||
hs -= 1;
|
||||
gst_video_format_info_get_tile_sizes (finfo, plane, &ws, &hs);
|
||||
|
||||
padded_height = GST_VIDEO_FORMAT_INFO_SCALE_HEIGHT (finfo, plane,
|
||||
info->height);
|
||||
|
|
Loading…
Reference in a new issue