media: s5p-jpeg: Split s5p_jpeg_parse_hdr()
authorThierry Escande <thierry.escande@collabora.com>
Fri, 30 Jun 2017 14:15:44 +0000 (10:15 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 26 Jul 2017 12:31:10 +0000 (08:31 -0400)
commitc8d36a80352efd00088ec0e693636c5ac8ca94e8
treed5481d4525711947a9d8973d7d93c4904d80e2da
parent14a2de14dc0619bf926c56cd12e29e0245d12abc
media: s5p-jpeg: Split s5p_jpeg_parse_hdr()

This patch moves the subsampling value decoding read from the JPEG
header into its own function. This new function is called
s5p_jpeg_subsampling_decode() and returns true if it successfully
decodes the subsampling value, false otherwise.

Signed-off-by: Thierry Escande <thierry.escande@collabora.com>
Acked-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Acked-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/s5p-jpeg/jpeg-core.c