media: s5p-jpeg: Add support for resolution change event
authorhenryhsu <henryhsu@chromium.org>
Fri, 30 Jun 2017 14:15:46 +0000 (10:15 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 26 Jul 2017 12:36:08 +0000 (08:36 -0400)
commit1c84e7f9d5dc596bef22204131e561c4b3addf0a
tree99728802a0583cab84c219a9b4db89c004c2673e
parentaccf9b2c1f8326d916576f4eef4ceaad3bab9bf4
media: s5p-jpeg: Add support for resolution change event

This patch adds support for resolution change event to notify clients so
they can prepare correct output buffer. When resolution change happened,
G_FMT for CAPTURE should return old resolution and format before CAPTURE
queues streamoff.

This event is used in the Chromium browser project by the V4L2 JPEG
Decode Accelerator (V4L2JDA) to allocate output buffer.

Signed-off-by: Henry-Ruey Hsu <henryhsu@chromium.org>
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: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/s5p-jpeg/jpeg-core.c
drivers/media/platform/s5p-jpeg/jpeg-core.h