From 3a52cbcc670e6b51ac97b9f5893e22747a349863 Mon Sep 17 00:00:00 2001 From: Benjamin Gaignard Date: Thu, 20 Jun 2024 16:51:07 +0200 Subject: [PATCH] v4l2codecs: Update videodev2.h with V4L2_FMTDESC_FLAG_ENUM_ALL flag Add V4L2_FMTDESC_FLAG_ENUM_ALL flag to support discovering all possible pixel formats. Add V4L2_FMT_FLAG_META_LINE_BASED to not create a hole in flag definition. Part-of: --- subprojects/gst-plugins-bad/sys/v4l2codecs/linux/videodev2.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/subprojects/gst-plugins-bad/sys/v4l2codecs/linux/videodev2.h b/subprojects/gst-plugins-bad/sys/v4l2codecs/linux/videodev2.h index 61419a3ebb..7947536bd4 100644 --- a/subprojects/gst-plugins-bad/sys/v4l2codecs/linux/videodev2.h +++ b/subprojects/gst-plugins-bad/sys/v4l2codecs/linux/videodev2.h @@ -842,6 +842,10 @@ struct v4l2_fmtdesc { #define V4L2_FMT_FLAG_CSC_YCBCR_ENC 0x0080 #define V4L2_FMT_FLAG_CSC_HSV_ENC V4L2_FMT_FLAG_CSC_YCBCR_ENC #define V4L2_FMT_FLAG_CSC_QUANTIZATION 0x0100 +#define V4L2_FMT_FLAG_META_LINE_BASED 0x0200 + +/* Format description flag, to be ORed with the index */ +#define V4L2_FMTDESC_FLAG_ENUM_ALL 0x80000000 /* Frame Size and frame rate enumeration */ /*