vl/util: add copy func for yv12image to nv12surface v2
authorBoyuan Zhang <boyuan.zhang@amd.com>
Thu, 21 Jul 2016 23:40:15 +0000 (19:40 -0400)
committerChristian König <christian.koenig@amd.com>
Mon, 25 Jul 2016 11:39:18 +0000 (13:39 +0200)
commit23b4ab1738f0f4470449c848b37b43568df4a60c
treeeab21243979a3cef745d22f5387be0126c350b7c
parent5bcaa1b9e9707aea7be73b406345bb9e46f92a18
vl/util: add copy func for yv12image to nv12surface v2

Add function to copy from yv12 image to nv12 surface for VAAPI putimage call.
We need this function in VaPutImage call where copying from yv12 image to nv12
surface for encoding. Existing function can't be used because it only work for
copying from yv12 surface to nv12 image in Vaapi.

v2: cleanup variable types and commit message

Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
src/gallium/auxiliary/util/u_video.h