tests: Add unit test for MediaCodecTextureConverter
Exercises createTextureHandles() against a real MediaCodec hw decode
and a real offscreen GLES2 QRhi. Unlike VAAPI/VideoToolBox,
MediaCodec's AVHWFramesContext has no upload path (no
frames_get_buffer/transfer_data_to/from), so there is no
synthetic-frame shortcut: the test decodes real H.264/HEVC test clips
through the actual MediaCodec hwaccel path.
Covers the red-frame decode round-trip (NV12 and a P010) and texture
reuse across consecutive frames.
Pick-to: 6.12
Change-Id: I5a67a16620de20aedebe9f0b3f0967da33a187d0
Reviewed-by: Nils Petter Skålerud <nils.petter.skalerud@qt.io>
| commit | 0cf83949b62e4df51022acc094b98c1bdfec48ca |
| parent | 5041c9838d3cf48546a3ce7b5f265e97d6ca878a |
| author | Tim Blechmann <tim.blechmann@qt.io> |
| committer | Tim Blechmann <tim.blechmann@qt.io> |
| commit time | Tue, 6 Oct 2026 03:05:39 +0000 |
- M src/multimediatestlib/rhi_support.cpp
- M src/multimediatestlib/rhi_support_p.h
- M tests/auto/unit/plugins/multimedia/ffmpeg/CMakeLists.txt
- A tests/auto/unit/plugins/multimedia/ffmpeg/qmediacodectextureconverter/CMakeLists.txt
- A tests/auto/unit/plugins/multimedia/ffmpeg/qmediacodectextureconverter/testdata/colors.mp4
- A tests/auto/unit/plugins/multimedia/ffmpeg/qmediacodectextureconverter/testdata/one_red_frame.mp4
- A tests/auto/unit/plugins/multimedia/ffmpeg/qmediacodectextureconverter/testdata/one_red_frame_p010.mp4
- A tests/auto/unit/plugins/multimedia/ffmpeg/qmediacodectextureconverter/tst_qmediacodectextureconverter.cpp