webrtc/modules/video_capture/linux
Andreas Pehrson 91d5fc2ed6 Support more pixel formats in v4l2 camera backend
These were tested with gstreamer and v4l2loopback, example setup:
$ sudo v4l2loopback-ctl add -n BGRA 10
$ gst-launch-1.0 videotestsrc pattern=smpte-rp-219 ! \
  video/x-raw,format=BGRA ! v4l2sink device=/dev/video10 > /dev/null &

Then conversion was confirmed with video_loopback:
$ ./video_loopback --capture_device_index=3 --logs 2>&1 | grep -i \
  capture

Bug: webrtc:14830
Change-Id: I35c8e453cf7f9a2923935b0ad82477a3144e8c12
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/291532
Commit-Queue: Stefan Holmer <stefan@webrtc.org>
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Stefan Holmer <stefan@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#39979}
2023-05-03 14:22:36 +00:00
..
device_info_linux.cc Add pipewire/portal video capture support 2023-02-02 17:20:04 +00:00
device_info_pipewire.cc Add pipewire/portal video capture support 2023-02-02 17:20:04 +00:00
device_info_pipewire.h Add pipewire/portal video capture support 2023-02-02 17:20:04 +00:00
device_info_v4l2.cc Support more pixel formats in v4l2 camera backend 2023-05-03 14:22:36 +00:00
device_info_v4l2.h Split out V4L2 specific code in the Linux Capture backend 2022-05-11 08:25:53 +00:00
pipewire_session.cc Add pipewire/portal video capture support 2023-02-02 17:20:04 +00:00
pipewire_session.h Add pipewire/portal video capture support 2023-02-02 17:20:04 +00:00
video_capture_linux.cc Add pipewire/portal video capture support 2023-02-02 17:20:04 +00:00
video_capture_pipewire.cc PipeWire video capture: set device unique ID during initialization 2023-04-17 09:31:45 +00:00
video_capture_pipewire.h Add pipewire/portal video capture support 2023-02-02 17:20:04 +00:00
video_capture_v4l2.cc Support more pixel formats in v4l2 camera backend 2023-05-03 14:22:36 +00:00
video_capture_v4l2.h Split out V4L2 specific code in the Linux Capture backend 2022-05-11 08:25:53 +00:00