From: Nicolas Dufresne Date: Thu, 10 Nov 2022 14:49:41 +0000 (-0500) Subject: rawvideoparse: Fix support for sub-sampled tile X-Git-Tag: 1.22.0~472 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b57135e09c6da79266c680e669e6e092bd340f11;p=platform%2Fupstream%2Fgstreamer.git 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: --- diff --git a/subprojects/gst-plugins-base/gst/rawparse/gstrawvideoparse.c b/subprojects/gst-plugins-base/gst/rawparse/gstrawvideoparse.c index ab0fa65..043af01 100644 --- a/subprojects/gst-plugins-base/gst/rawparse/gstrawvideoparse.c +++ b/subprojects/gst-plugins-base/gst/rawparse/gstrawvideoparse.c @@ -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];