[media] s5p-jpeg: Retrieve "YCbCr subsampling" field from the jpeg header
authorJacek Anaszewski <j.anaszewski@samsung.com>
Thu, 21 Nov 2013 16:33:09 +0000 (13:33 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 03:01:10 +0000 (12:01 +0900)
commit105f878bffb0a7bd09575b64a18b4247e97cea0b
tree973089f90beeee437e8121eef8ce7271ac742698
parente4a2c495b1a569ec46c1f7aa7eed8f1c87105af4
[media] s5p-jpeg: Retrieve "YCbCr subsampling" field from the jpeg header

Make s5p_jpeg_parse_hdr function capable of parsing
"YCbCr subsampling" field of a jpeg file header. Store the
parsed value in the context.

The information about source JPEG subsampling is required to
make validation of destination format possible, which must be
conducted for exynos4x12 device as the decoding process will
not succeed if the destination format is set to YUV with
subsampling lower than the one of the source JPEG image.

With this knowledge the driver can adjust the destination format
appropriately.

Change-Id: I6327a5037cf06eb05f10caba6a86f4d00e5c029b
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/s5p-jpeg/jpeg-core.c