[media] s5p-jpeg: Prevent JPEG 4:2:0 > YUV 4:2:0 decompression
authorJacek Anaszewski <j.anaszewski@samsung.com>
Thu, 10 Apr 2014 07:32:17 +0000 (04:32 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 13 May 2014 23:22:06 +0000 (20:22 -0300)
commit2caeeb0c1672c6775963ef7413b0f9566df42b87
tree4954e31b5f9548429574859fad3045636477452e
parentb2254d6fdd6c72222fbc57b3c201836a30b1fb62
[media] s5p-jpeg: Prevent JPEG 4:2:0 > YUV 4:2:0 decompression

Prevent decompression of a JPEG 4:2:0 with odd width to
the YUV 4:2:0 compliant formats for Exynos4x12 SoCs and
adjust capture format to RGB565 in such a case. This is
required because the configuration would produce a raw
image with broken luma component.

Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.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