Fix for building with old V4L
authorMaksim Shabunin <maksim.shabunin@gmail.com>
Fri, 26 Jul 2019 12:37:28 +0000 (15:37 +0300)
committerMaksim Shabunin <maksim.shabunin@gmail.com>
Fri, 2 Aug 2019 08:19:49 +0000 (11:19 +0300)
modules/videoio/src/cap_v4l.cpp

index 2e27946..8035d45 100644 (file)
@@ -258,6 +258,10 @@ make & enjoy!
 #define V4L2_CID_IRIS_ABSOLUTE (V4L2_CID_CAMERA_CLASS_BASE+17)
 #endif
 
+#ifndef V4L2_PIX_FMT_Y10
+#define V4L2_PIX_FMT_Y10 v4l2_fourcc('Y', '1', '0', ' ')
+#endif
+
 /* Defaults - If your board can do better, set it here.  Set for the most common type inputs. */
 #define DEFAULT_V4L_WIDTH  640
 #define DEFAULT_V4L_HEIGHT 480