This is an automatic generated email to let you know that the following patch were queued at the http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:
Subject: v4l-helpers: v4l_format_s_sizeimage: add support for other buftypes Author: Hans Verkuil <hverkuil-ci...@xs4all.nl> Date: Wed Jun 26 12:43:45 2024 +0200 v4l_format_s_sizeimage() can now be used with any buffer type, except for the raw VBI buffer types, since those do not have a 'sizeimage' equivalent. Signed-off-by: Hans Verkuil <hverkuil-ci...@xs4all.nl> utils/common/v4l-helpers.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) --- http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=3734e0db2d62369c99808c4f576bab599a87f51f diff --git a/utils/common/v4l-helpers.h b/utils/common/v4l-helpers.h index 437a68444067..5ff634f82cfc 100644 --- a/utils/common/v4l-helpers.h +++ b/utils/common/v4l-helpers.h @@ -1039,6 +1039,21 @@ static inline void v4l_format_s_sizeimage(struct v4l2_format *fmt, case V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE: fmt->fmt.pix_mp.plane_fmt[plane].sizeimage = sizeimage; break; + case V4L2_BUF_TYPE_SLICED_VBI_CAPTURE: + case V4L2_BUF_TYPE_SLICED_VBI_OUTPUT: + if (plane == 0) + fmt->fmt.sliced.io_size = sizeimage; + break; + case V4L2_BUF_TYPE_SDR_CAPTURE: + case V4L2_BUF_TYPE_SDR_OUTPUT: + if (plane == 0) + fmt->fmt.sdr.buffersize = sizeimage; + break; + case V4L2_BUF_TYPE_META_CAPTURE: + case V4L2_BUF_TYPE_META_OUTPUT: + if (plane == 0) + fmt->fmt.meta.buffersize = sizeimage; + break; } }