[Mesa-dev] [RFC 0/2] mesa/st: support for YUV EGLImages

Ilia Mirkin imirkin at alum.mit.edu
Mon Sep 5 16:37:22 UTC 2016


On Mon, Sep 5, 2016 at 12:32 PM, Rob Clark <robdclark at gmail.com> wrote:
>>>  + single plane (interleaved) YUV formats?  And seems like android
>>>    wants YV12 (which is I420 with the 2nd and 3rd planes swapped).
>>>    In general I don't want to go too crazy and add every YUV format
>>>    under the sun, but try and limit it to the must-have formats.
>>
>> Have you considered using PIPE_FORMAT_R8G8_R8B8_UNORM and the BGR version?
>
> Hmm, no.. (I also don't support it in freedreno, so not entirely sure
> what that format is.)
>
> How did you expect that to help?

It's the UYVY/YUYV sampler formats (i.e. single-plane YUV formats). I
don't think they do the YUV -> RGB conversion, but you just get the
relevant YUV values. From the docs:

"""
Format names with an embedded underscore are subsampled. R8G8_B8G8 is
a single 32-bit block of two pixels, where the R and B values are
repeated in both pixels.
"""

Supported on nouveau, and I think a few other drivers.

  -ilia


More information about the mesa-dev mailing list