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.
Showing the changes to include/uapi (1 of 3 files). Show all
Unified · Split
| @@ -907,6 +907,9 @@ struct v4l2_fmtdesc { · 906 unmodified lines | |||
| 907 | #define V4L2_FMT_FLAG_CSC_QUANTIZATION 0x0100 | 907 | #define V4L2_FMT_FLAG_CSC_QUANTIZATION 0x0100 |
| 908 | #define V4L2_FMT_FLAG_META_LINE_BASED 0x0200 | 908 | #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 N | 915 | * F R A M E S I Z E E N U M E R A T I O N |