]> git.baikalelectronics.ru Git - kernel.git/commit
media: hantro: Implement V4L2_CID_JPEG_ACTIVE_MARKER control
authorChen-Yu Tsai <wenst@chromium.org>
Fri, 7 Jan 2022 09:34:53 +0000 (10:34 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 28 Jan 2022 12:25:58 +0000 (13:25 +0100)
commit1fc82e6d6869728c404f1db10844180e00f3789f
tree083e133312ecdc360b89ede0eebadaf562943f08
parent4447aaf8e025b3811d11ce2ff1131c5b59e065f1
media: hantro: Implement V4L2_CID_JPEG_ACTIVE_MARKER control

The Hantro JPEG encoder driver adds various segments to the JPEG header.
While it would be quite complicated to make these segments selectable
to userspace, given that the driver has to fill in various fields in
these segments, and also take care of alignment, it would be nice if
the driver could signal to userspace what segments are included.

Implement the V4L2_CID_JPEG_ACTIVE_MARKER control, and make it read
only so that it always returns the set of segments that the driver adds.

Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/hantro/hantro_drv.c