libs: decoder: jpeg: add support 400/411/422/444 chroma type
authorWangfei <fei.w.wang@intel.com>
Thu, 30 May 2019 13:48:51 +0000 (09:48 -0400)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Wed, 26 Jun 2019 10:36:56 +0000 (10:36 +0000)
commit67ed67515bc1b3b8914364e427deea336c8cd6b9
tree10d3c8c45e5c1ce520ca014d48c5b7d7e88d2b06
parent3b5c7aa688f84294f1daa724b9719f719f3ab9dc
libs: decoder: jpeg: add support 400/411/422/444 chroma type

When create vaapi surface, it is better to use the chroma type get
from jpeg file instead of using fixed 420 format. And the correct
chroma type can be determined by horizontal_factor/vertical_factor
flags that get from jpegparse.
gst-libs/gst/vaapi/gstvaapidecoder_jpeg.c
gst-libs/gst/vaapi/gstvaapiimage.c
gst-libs/gst/vaapi/video-format.c
gst/vaapi/gstvaapidecode.c
gst/vaapi/gstvaapipluginutil.h