From: Jacek Anaszewski Date: Thu, 21 Nov 2013 16:33:09 +0000 (-0300) Subject: [media] s5p-jpeg: Retrieve "YCbCr subsampling" field from the jpeg header X-Git-Tag: v3.14-rc1~20^2~246 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f84339628d9224200e9145320da494da2d92cd50;p=pandora-kernel.git [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. Signed-off-by: Jacek Anaszewski Signed-off-by: Kyungmin Park Acked-by: Hans Verkuil Signed-off-by: Sylwester Nawrocki Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed