linux/drivers/media/video/s5p-jpeg
Andrzej Pietrasiewicz fb6f8c0269 [media] s5p-jpeg: Adapt to new controls
Adapt to new controls (subsampling).

For encoding, the destination format now needs to be set to V4L2_PIX_FMT_JPEG
and the subsampling (4:2:2 or 4:2:0) needs to be set using the respective
control (V4L2_CID_JPEG_CHROMA_SUBSAMPLING). Required buffer size for
destination image during encoding is no longer deduced from the format (which
generally implied overestimation), but needs to be given from userspace in
sizeimage.

Not strictly related to the added controls, this patch also fixes setting the
subsampling of the destination image for decoding, depending on the destination
format.

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@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 <mchehab@redhat.com>
2012-03-08 07:43:51 -03:00
..
jpeg-core.c [media] s5p-jpeg: Adapt to new controls 2012-03-08 07:43:51 -03:00
jpeg-core.h [media] s5p-jpeg: Add JPEG controls support 2012-03-01 17:10:30 -03:00
jpeg-hw.h [media] s5p-jpeg: Add JPEG controls support 2012-03-01 17:10:30 -03:00
jpeg-regs.h
Makefile