xenocara/app/video
feinerer b0c69ca889 Initialize v4l2_requestbuffers for better libv4l compatibility
The VIDIOC_REQBUFS ioctl requires a v4l2_requestbuffers struct with the members
count, type, and memory. In the past only count was set as the uvideo(4) kernel
driver, via uvideo_reqbufs(), is ignoring both struct members type and memory
(pointed out by mpi@).

However, using video(1) with libv4l
(LD_PRELOAD=/usr/local/lib/v4l2convert.so video)
yields "mmap: Invalid argument" as libv4l inspects the type and memory
struct members and fails if memory != V4L2_MEMORY_MMAP.

Full initialization fixes libv4l usage which allows us to view video encodings
not directly supported by video(1), e.g., MJPEG, as libv4l can convert
encodings on the fly.

OK mglocker@
2020-07-01 06:45:24 +00:00
..
Makefile switch to installing source manuals: 2011-06-23 22:48:59 +00:00
video.1 Add support for yv12 encoding to video(1). 2019-02-25 12:34:35 +00:00
video.c Initialize v4l2_requestbuffers for better libv4l compatibility 2020-07-01 06:45:24 +00:00