[PATCH xserver 0/3] Xv: add NV12 support in glamor

Julien Isorce julien.isorce at gmail.com
Thu Sep 6 22:38:12 UTC 2018


Some video decoders can only output NV12 and currently glamor Xv only
supports I420 and YV12.

Tested with xf86-video-ati, xf86-video-amdgpu and xf86-video-modesetting
on AMD graphics but should work on any setup that can use glamor.

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

Julien Isorce (3):
  xfree86: define FOURCC_NV12 and XVIMAGE_NV12
  glamor: add support for GL_RG
  glamor: add support for NV12 in Xv

 glamor/glamor.c            |   2 +
 glamor/glamor.h            |   1 +
 glamor/glamor_priv.h       |   4 +-
 glamor/glamor_transfer.c   |  10 ++-
 glamor/glamor_utils.h      |   4 +
 glamor/glamor_xv.c         | 180 ++++++++++++++++++++++++++++++++++++++-------
 hw/xfree86/common/fourcc.h |  20 +++++
 7 files changed, 193 insertions(+), 28 deletions(-)

-- 
2.7.4



More information about the xorg-devel mailing list