Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Media Common] Add DRM format mappings for JPEG decoder output
The output formats from the JPEG decoder are currently not included in the DRM format mapping functions. This means that any attempt to call vaExportSurface on JPEG images will fail. However, there is no functional gap beyond the missing mappings, so if we add them in, exporting will then work correctly. The four formats in question are IMC3, 422H, 422V, and 444P. * 422H and 444P have trivial 1:1 mappings. * IMC3 can be treated the same as I420, because the only difference is the chroma pitch, and that's explicitly set in the descriptor * 422V (aka 440P) has the same memory layout as 422H - it's just a difference in how the consumer handle the chroma I also added the missing XYUV composite object mapping - it was already present for separate planes. Tested with ffmpeg+mpv.
- Loading branch information