st/va: properly defines VAImageFormat formats and improve VaCreateImage
authorJulien Isorce <j.isorce@samsung.com>
Fri, 30 Oct 2015 11:42:44 +0000 (11:42 +0000)
committerChristian König <christian.koenig@amd.com>
Fri, 30 Oct 2015 12:05:23 +0000 (13:05 +0100)
commit87109e5f88131b78232e42c8fe246002867fb247
tree5a0952832529717fa089ea93733df4b9e2b5b73b
parent7b8cc375851286e0da59fd0afde28c67b3bcabf1
st/va: properly defines VAImageFormat formats and improve VaCreateImage

Added PIPE_VIDEO_CHROMA_FORMAT_NONE in p_format.h
and return it by default in ChromaToPipe.

Renamed YCbCrToPipe to VaFourccToPipeFormat because it now
contains RGB.

Implemented PipeFormatToVaFourcc which will be used later in
VlVaDeriveImage.

Note that gstreamer-vaapi check all the VAImageFormat fields.

Signed-off-by: Julien Isorce <j.isorce@samsung.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/include/pipe/p_format.h
src/gallium/state_trackers/va/image.c
src/gallium/state_trackers/va/va_private.h