PipeWire: make video format helpers reusable
Move toQtPixelFormat(), toSpaVideoFormat() and rateFromFps() out of
QPipeWireCaptureHelper into a standalone qpipewire_videoformat_support,
and add unit tests covering the pixel-format mapping and NTSC-aware
frame rate rounding.
This allows us to reuse it for future pipewire camera support.
Pick-to: 6.12
Change-Id: Ib2cfb0e181b3712c38b99aecea6ed58030df5928
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
| commit | d5316dee64c9ecf86808812ab0fad7da5c3f6f8b |
| parent | 8f567348aba4525adeda5a3fba5e729192ca5e1b |
| author | Tim Blechmann <tim.blechmann@qt.io> |
| committer | Tim Blechmann <tim.blechmann@qt.io> |
| commit time | Wed, 2 Sep 2026 11:07:21 +0000 |
- M src/multimedia/CMakeLists.txt
- M src/multimedia/pipewire/qpipewire_screencapturehelper.cpp
- M src/multimedia/pipewire/qpipewire_screencapturehelper_p.h
- A src/multimedia/pipewire/qpipewire_videoformat_support.cpp
- A src/multimedia/pipewire/qpipewire_videoformat_support_p.h
- M tests/auto/unit/multimedia/CMakeLists.txt
- A tests/auto/unit/multimedia/qpipewire_videoformat_support/CMakeLists.txt
- A tests/auto/unit/multimedia/qpipewire_videoformat_support/tst_qpipewire_videoformat_support.cpp