glamor: add support for NV12 in Xv

Graphics / X.Org / X.Org Server - Julien Isorce [] - 11 September 2018 19:54 EDT

Useful when video decoders only output NV12. Currently glamor Xv only supports I420 and YV12.

Note that Intel's sna supports I420, YV12, YUY2, UYVY, NV12.

Test: xvinfo | grep NV12 Test: gst-launch-1.0 videotestsrc ! video/x-raw, format=NV12 ! xvimagesink

v2: Combine the two texture2Ds on u_sampler.

f4115bcc8 glamor: add support for NV12 in Xv
glamor/glamor_xv.c | 180 +++++++++++++++++++++++++++++++++++++++++++++--------
1 file changed, 155 insertions(+), 25 deletions(-)


  • Share