pipewire-v4l2: Implement more ioctls

Collect all video/source nodes and enumerate their formats. We use this
to return the supported formats and to check if a format is supported.

Use evenfd as the even we return from open. Make the eventfd readable
when we have a new buffer ready.

Connect a stream when setting a format. Collect buffers. Implement
mmap/munmap on the buffer memory. Implement queue and dequeue of buffers.

This is enough to make the webcam test work in firefox.
This commit is contained in:
Wim Taymans 2021-10-08 09:13:03 +02:00
parent e68fd36f90
commit b466fe67dd

File diff suppressed because it is too large Load Diff