rawvideoparse: Fix support for sub-sampled tile
This element was missed as it does not use the new helpers to calculate the plane size. The code is relatively simple though, so adding support for subsample tiles was easy enough. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3385>
This commit is contained in:
parent
5ca3988420
commit
b57135e09c
@ -1163,6 +1163,10 @@ gst_raw_video_parse_update_info (GstRawVideoParseConfig * config)
|
||||
gint y_tiles = GST_VIDEO_TILE_Y_TILES (stride);
|
||||
gint tile_width = 1 << GST_VIDEO_FORMAT_INFO_TILE_WS (info->finfo);
|
||||
gint tile_height = 1 << GST_VIDEO_FORMAT_INFO_TILE_HS (info->finfo);
|
||||
|
||||
if (GST_VIDEO_FORMAT_INFO_HAS_SUBTILES (info->finfo))
|
||||
tile_height /= 2;
|
||||
|
||||
last_plane_size = x_tiles * y_tiles * tile_width * tile_height;
|
||||
} else {
|
||||
gint comp[GST_VIDEO_MAX_COMPONENTS];
|
||||
|
Loading…
x
Reference in New Issue
Block a user