Files
tubestation/widget
David Turner b315f24a48 Bug 1960639 - Fix YU12/YV12 confusion in V4L2 decode r=stransky,media-playback-reviewers,aosmond
The V4L2 code in FFmpegDescToVA erroneously stored YUV420 as
VA_FOURCC_YV12, but actually it should be VA_FOURCC_I420 (YV12 is for
YVU420, not YUV420).  This didn't make any difference when the format
conversion was done by the GPU in Firefox's compositor, but now we're
exporting YUV dmabufs (webrender-compositor and hdr mode), this causes
colors to appear incorrect.

Also, DmaBufSurface.mFOURCCFormat is stored as a VA_FOURCC_* enum, but
the format passed to zwp_linux_buffer_params_v1::create_immed needs to
be a DRM_FORMAT_* enum, so add a conversion in CreateWlBuffer().

Differential Revision: https://phabricator.services.mozilla.com/D245574
2025-05-06 15:43:28 +00:00
..