Add simple plain C routines for NV12<->YV12 and YUYV<->UYVY conversions. The NV12->YV12 conversion is commonly used, for instance by VLC.
e6c2afa st/vdpau: add format conversions for GetBitsYCbCr
src/gallium/state_trackers/vdpau/surface.c | 125 ++++++++++++++++++++++++++--
1 file changed, 117 insertions(+), 8 deletions(-)
Upstream: cgit.freedesktop.org