OSDN Git Service

[media] s5p-jpeg: Add JPEG controls support
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Fri, 17 Feb 2012 14:39:36 +0000 (11:39 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 1 Mar 2012 20:10:30 +0000 (17:10 -0300)
commit15f4bc3b1f42ca73ad073d7390aa34fa358f02a3
tree1c8ce26e608bd8a90765d05f1f7fe463d6a4ca0f
parent275de24dc0076fac25e86e586c9577b8caee28ce
[media] s5p-jpeg: Add JPEG controls support

This patch replaces VIDIOC_S/G_JPEGCOMP ioctl handlers with
V4L2_CID_JPEG_QUALITY control. Additionally it enables JPEG subsampling
and the restart interval configuration through V4L2_CID_JPEG_SUBSAMPLING
and V4L2_CID_JPEG_RESTART_INTERVAL controls. For the decoder video node
only V4L2_CID_JPEG_SUBSAMPLING is available as a read-only control.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/s5p-jpeg/jpeg-core.c
drivers/media/video/s5p-jpeg/jpeg-core.h
drivers/media/video/s5p-jpeg/jpeg-hw.h