AC_CHECK_MEMBERS(m4_normalize([
struct v4l2_capability.device_caps,
+ struct v4l2_format.fmt.pix_mp,
+ struct v4l2_format.fmt.sdr,
+ struct v4l2_format.fmt.sliced,
struct v4l2_window.global_alpha,
struct v4l2_sdr_format.buffersize
]),,, [#include <sys/time.h>
"V4L2_COLORSPACE_???");
tprints("}");
break;
-#if HAVE_DECL_V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE
+#if HAVE_STRUCT_V4L2_FORMAT_FMT_PIX_MP
case V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE:
case V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE: {
unsigned int i, max;
}
#endif
/* OUTPUT_OVERLAY since Linux v2.6.22-rc1~1118^2~179 */
-#if HAVE_DECL_V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY
case V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY:
-#endif
case V4L2_BUF_TYPE_VIDEO_OVERLAY: {
struct_v4l2_clip clip;
tprints(prefix);
tprints("}");
break;
/* both since Linux v2.6.14-rc2~64 */
-#if HAVE_DECL_V4L2_BUF_TYPE_SLICED_VBI_CAPTURE
+#if HAVE_STRUCT_V4L2_FORMAT_FMT_SLICED
case V4L2_BUF_TYPE_SLICED_VBI_CAPTURE:
case V4L2_BUF_TYPE_SLICED_VBI_OUTPUT: {
unsigned int i, j;
break;
}
#endif
+#if HAVE_STRUCT_V4L2_FORMAT_FMT_SDR
/* since Linux v4.4-rc1~118^2~14 */
-#if HAVE_DECL_V4L2_BUF_TYPE_SDR_OUTPUT
case V4L2_BUF_TYPE_SDR_OUTPUT:
-#endif
/* since Linux v3.15-rc1~85^2~213 */
-#if HAVE_DECL_V4L2_BUF_TYPE_SDR_CAPTURE
case V4L2_BUF_TYPE_SDR_CAPTURE:
tprints(prefix);
tprints("fmt.sdr={pixelformat=");
-V4L2_BUF_TYPE_VIDEO_CAPTURE
-V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE
-V4L2_BUF_TYPE_VIDEO_OUTPUT
-V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE
-V4L2_BUF_TYPE_VIDEO_OVERLAY
-V4L2_BUF_TYPE_VBI_CAPTURE
-V4L2_BUF_TYPE_VBI_OUTPUT
-V4L2_BUF_TYPE_SLICED_VBI_CAPTURE
-V4L2_BUF_TYPE_SLICED_VBI_OUTPUT
-V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY
-V4L2_BUF_TYPE_SDR_CAPTURE
-V4L2_BUF_TYPE_SDR_OUTPUT
-V4L2_BUF_TYPE_META_CAPTURE
-V4L2_BUF_TYPE_META_OUTPUT
+#value_indexed
+V4L2_BUF_TYPE_VIDEO_CAPTURE 1
+V4L2_BUF_TYPE_VIDEO_OUTPUT 2
+V4L2_BUF_TYPE_VIDEO_OVERLAY 3
+V4L2_BUF_TYPE_VBI_CAPTURE 4
+V4L2_BUF_TYPE_VBI_OUTPUT 5
+V4L2_BUF_TYPE_SLICED_VBI_CAPTURE 6
+V4L2_BUF_TYPE_SLICED_VBI_OUTPUT 7
+V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY 8
+V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE 9
+V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE 10
+V4L2_BUF_TYPE_SDR_CAPTURE 11
+V4L2_BUF_TYPE_SDR_OUTPUT 12
+V4L2_BUF_TYPE_META_CAPTURE 13
+V4L2_BUF_TYPE_META_OUTPUT 14
+/* V4L2_BUF_TYPE_PRIVATE 0x80 */