]> 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)
commit53fc3595c726a69dd60c90ce7adc134a6a0d679b
tree8e040c223fa88f397abf24826860cea454342f38
parent2b18e302c7a12babec1e8e3d1ef04df971805610
[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