st/va: detect MJPEG format from bitstream
authorLeo Liu <leo.liu@amd.com>
Tue, 15 Aug 2017 18:08:02 +0000 (14:08 -0400)
committerLeo Liu <leo.liu@amd.com>
Mon, 21 Aug 2017 14:09:09 +0000 (10:09 -0400)
commit2ebc530ca376fc5f07b7982d9598bdfb5fe4032e
tree804be71d602fc555e95758a0d9afbb58c2b2b13f
parent7319ff87871c8e5f909a1674cd60279ef53cbbd0
st/va: detect MJPEG format from bitstream

To find if the format is supported YUYV by sampling factor which
is embedded from bitstream. So we could use this info for buffer
reallocation on the correct format.

Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/state_trackers/va/picture.c
src/gallium/state_trackers/va/picture_mjpeg.c
src/gallium/state_trackers/va/va_private.h