Multimedia: describe single-image DMABuf textures by pixel format
Single-image DMABuf imports expose one texture for a multi-plane frame.
The handles used to carry a texture count, with -1 meaning one per
plane, plus a separate external OES flag. Replace both with the pixel
format the handles' textures represent: single-image imports report
Format_RGBA8888, or Format_SamplerExternalOES when external OES is
forced. The texture count and the ExternalOES flag now follow from
that format.
Reject single-image imports for formats without a single-image DRM
fourcc instead of silently using the first plane's format, and take
the handle textures as a vector so their count is its size.
Pick-to: 6.12
Change-Id: I9e1d8b59868336e964ca673fb5359ff8dc4817ca
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
| commit | aedaf65cd5544aa3d1640f1a38c7d030f1b66286 |
| parent | 2752cf5ab3c91bbd89f38b863efe00e430b671eb |
| author | Tim Blechmann <tim.blechmann@qt.io> |
| committer | Tim Blechmann <tim.blechmann@qt.io> |
| commit time | Wed, 21 Oct 2026 00:16:07 +0000 |
- M src/multimedia/video/qdmabuftextureimporter.cpp
- M src/multimedia/video/qdmabuftextureimporter_p.h
- M src/multimedia/video/qdmabufvideobuffer.cpp
- M src/multimedia/video/qdmabufvideobuffer_p.h
- M src/multimedia/video/qhwvideobuffer_p.h
- M src/multimedia/video/qmultimedia_drm_support_p.h
- M src/multimedia/video/qvideotexturehelper.cpp
- M src/multimedia/video/qvideotexturehelper_p.h
- M tests/auto/unit/multimedia/qdmabuftextureimporter/tst_qdmabuftextureimporter.cpp
- M tests/auto/unit/multimedia/qdmabufvideobuffer/tst_qdmabufvideobuffer.cpp
- M tests/auto/unit/multimedia/qmultimedia_drm_support/tst_qmultimedia_drm_support.cpp