]> git.baikalelectronics.ru Git - kernel.git/commit
[media] coda: per-product list of codecs instead of list of formats
authorPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 23 May 2013 13:42:58 +0000 (10:42 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 8 Jun 2013 22:43:50 +0000 (19:43 -0300)
commitb758f1364cbedd0fab895a2be3579f459148e058
tree31c5f9943131a3a7a299f66afc277ce27f76f3e1
parent63e3487d9c1f75c993e402b136a0c36a5f7138ef
[media] coda: per-product list of codecs instead of list of formats

This patch adds a list of supported codecs per device type which is used to
determine the allowed pixel formats and maximum frame sizes depending on the
possible codecs. It allows frame sizes larger than 720 x 576 on CODA7 and adds
support for the YVU420 (planar YUV 4:2:0 with switched Cb and Cr) format.
Other uncompressed formats that could be added in the future are the chroma
interleaved NV12 and NV21 formats and the multiplanar variants YUV420M,
YVU420M, NV12M, and NV21M.
Further, rawstreamon is renamed to streamon_out and compstreamon is renamed
to streamon_cap in preparation for decoding support. The maximum encoded
frame buffer size is increased to 1 MiB.
Instead of tracking inst_type and codec across S_FMT calls, set the codec
and inst_type in start_streaming.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/coda.c
drivers/media/platform/coda.h