]> git.baikalelectronics.ru Git - kernel.git/commit
[media] coda: use VDOA for un-tiling custom macroblock format
authorMichael Tretter <m.tretter@pengutronix.de>
Fri, 20 Jan 2017 14:00:24 +0000 (12:00 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 31 Jan 2017 10:37:43 +0000 (08:37 -0200)
commit60f20a77b1994e8fc0fbc087d08d83a78f198484
tree8e040c223fa88f397abf24826860cea454342f38
parentb431cf531e9478c7e9e185bcbe4aa37d76777282
[media] coda: use VDOA for un-tiling custom macroblock format

If the CODA driver is configured to produce NV12 output and the VDOA is
available, the VDOA can be used to transform the custom macroblock tiled
format to a raster-ordered format for scanout.

In this case, set the output format of the CODA to the custom macroblock
tiled format, disable the rotator, and use the VDOA to write to the v4l2
buffer. The VDOA is synchronized with the CODA to always un-tile the
frame that the CODA finished in the previous run.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/coda/coda-bit.c
drivers/media/platform/coda/coda-common.c
drivers/media/platform/coda/coda.h