st/vdpau: add format conversions for GetBitsYCbCr
authorGrigori Goronzy <greg@chown.ath.cx>
Sun, 13 Oct 2013 16:08:45 +0000 (18:08 +0200)
committerChristian König <christian.koenig@amd.com>
Sun, 13 Oct 2013 18:09:38 +0000 (20:09 +0200)
commite6c2afa9ceacc188690deba9da7b46bf1a0a9027
tree49441b83c7c2fa7079c7478ed16a5d27ef8c13bd
parentf250fd59c4e39e55816eb0bacce30c14240b58c4
st/vdpau: add format conversions for GetBitsYCbCr

Add simple plain C routines for NV12<->YV12 and YUYV<->UYVY
conversions. The NV12->YV12 conversion is commonly used, for instance
by VLC.

Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/state_trackers/vdpau/surface.c