History

media: videodev2: Add flag to unconditionally enumerate pixel formats

When the index is ORed with V4L2_FMTDESC_FLAG_ENUM_ALL the driver clears the flag and enumerate all the possible formats, ignoring any limitations from the current configuration. Drivers which do not support this flag yet always return an EINVAL.

Benjamin Gaignard committed 2 years ago

Commit 06f55311 parent 0567d0f3 files · +21 −1Browse files

Showing the changes to include/uapi (1 of 3 files). Show all

Unified · Split

include/uapi/linux/videodev2.h+3−0
@@ -907,6 +907,9 @@ struct v4l2_fmtdesc { · 906 unmodified lines
907#define V4L2_FMT_FLAG_CSC_QUANTIZATION 0x0100907#define V4L2_FMT_FLAG_CSC_QUANTIZATION 0x0100
908#define V4L2_FMT_FLAG_META_LINE_BASED 0x0200908#define V4L2_FMT_FLAG_META_LINE_BASED 0x0200
909 909
910/* Format description flag, to be ORed with the index */
911#define V4L2_FMTDESC_FLAG_ENUM_ALL 0x80000000
912
910 /* Frame Size and frame rate enumeration */913 /* Frame Size and frame rate enumeration */
911/*914/*
912 * F R A M E S I Z E E N U M E R A T I O N915 * F R A M E S I Z E E N U M E R A T I O N