tests: Add unit test for VideoToolBox / VAAPI TextureConverter
Exercises create()/createTextureHandles() against a real VideoToolbox hw
frame and a real offscreen Metal / EGL QRhi.
Covers pixel-accurate round-tripping of both NV12 planes, and the
retention behavior, which must keep the underlying buffers alive after
the source AVFrame/AVHWFramesContext is destroyed.
To simplify the implementation, we add a few rhi support functionalities
to MultimediaTestLibPrivate to allow us to create offscreen surfaces and
read planes from native textures.
Pick-to: 6.12
Change-Id: I17a167c8dc6f2e9fd5f185e52088d695d21d9b7f
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
| commit | 95ad2cea480c796b6867a5ac6beec64b4621d1cd |
| parent | 13557bd5332bdb3e21417fa9b0f47f2f8d19efef |
| author | Tim Blechmann <tim.blechmann@qt.io> |
| committer | Tim Blechmann <tim.blechmann@qt.io> |
| commit time | Mon, 21 Sep 2026 13:51:38 +0000 |
- M src/multimediatestlib/CMakeLists.txt
- A src/multimediatestlib/rhi_support.cpp
- A src/multimediatestlib/rhi_support_p.h
- M tests/auto/unit/multimedia/qdmabuftextureimporter/tst_qdmabuftextureimporter.cpp
- M tests/auto/unit/plugins/multimedia/ffmpeg/CMakeLists.txt
- A tests/auto/unit/plugins/multimedia/ffmpeg/qvaapitextureconverter/CMakeLists.txt
- A tests/auto/unit/plugins/multimedia/ffmpeg/qvaapitextureconverter/tst_qvaapitextureconverter.cpp
- A tests/auto/unit/plugins/multimedia/ffmpeg/qvideotoolboxtextureconverter/CMakeLists.txt
- A tests/auto/unit/plugins/multimedia/ffmpeg/qvideotoolboxtextureconverter/tst_qvideotoolboxtextureconverter.cpp
- A tests/auto/unit/plugins/multimedia/ffmpeg/shared/CMakeLists.txt
- A tests/auto/unit/plugins/multimedia/ffmpeg/shared/nv12hwframecontext_p.h