I would like to add V4L2_FMT_FLAG_EMULATED to sys/videoio.h as libv4l
(https://github.com/jasperla/openbsd-wip/tree/master/multimedia/libv4l)
returns the flag for emulated (i.e., not natively supported by your
webcam) video formats. In turn some userspace applications (like the SIP
user-agent baresip) look for this flag as well.
OK?
Best regards,
Ingo
Index: videoio.h
===================================================================
RCS file: /cvs/src/sys/sys/videoio.h,v
retrieving revision 1.8
diff -u -p -r1.8 videoio.h
--- videoio.h 23 Oct 2014 07:34:48 -0000 1.8
+++ videoio.h 20 Nov 2015 19:02:10 -0000
@@ -360,6 +360,7 @@ struct v4l2_fmtdesc {
};
#define V4L2_FMT_FLAG_COMPRESSED 0x0001
+#define V4L2_FMT_FLAG_EMULATED 0x0002
/*
* F R A M E S I Z E E N U M E R A T I O N