mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-06 01:19:38 +00:00
video: Fix NV12_16L32S video frame size
The size of a NV12_16L32S video frame is bigger than expected because it uses the size of a Y tile to compute the interleaved UV plane size. Get the right UV tile size instead. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6135>
This commit is contained in:
parent
4e01c01483
commit
44faeb532d
1 changed files with 1 additions and 1 deletions
|
@ -1116,7 +1116,7 @@ fill_planes (GstVideoInfo * info, gsize plane_size[GST_VIDEO_MAX_PLANES])
|
|||
const gsize y_tile_size =
|
||||
GST_VIDEO_FORMAT_INFO_TILE_SIZE (info->finfo, 0);
|
||||
const gsize uv_tile_size =
|
||||
GST_VIDEO_FORMAT_INFO_TILE_SIZE (info->finfo, 0);
|
||||
GST_VIDEO_FORMAT_INFO_TILE_SIZE (info->finfo, 1);
|
||||
gint tile_width = GST_VIDEO_FORMAT_INFO_TILE_WIDTH (info->finfo, 0);
|
||||
gint tile_height = GST_VIDEO_FORMAT_INFO_TILE_HEIGHT (info->finfo, 0);
|
||||
gint n_tile_x = GST_ROUND_UP_N (info->width, tile_width) / tile_width;
|
||||
|
|
Loading…
Reference in a new issue