]> asedeno.scripts.mit.edu Git - linux.git/commit
media: ti-vpe: Add support for NV21 format
authorNikhil Devshatwar <nikhil.nd@ti.com>
Mon, 7 Oct 2019 15:09:54 +0000 (12:09 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 10 Oct 2019 16:46:46 +0000 (13:46 -0300)
commitb2bb3d822f2c9e27236ea32bc5ef18a9f22c8a80
tree96fdead71e92c1b6592e938987da2d4e0397e13d
parent95959793d20d0c12e1a81309dbd1a652f3ee197b
media: ti-vpe: Add support for NV21 format

In NV21 format, the chroma plane is written to memory such that the U
and V components are swapped for NV12.

Create a new entry in the VPDMA formats to describe the correct data
types used in the data descriptors.

Update all checks for NV12 and add NV21 there as well.

Add support for V4L2_PIX_FMT_NV21 format for both capture and output
streams.

Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
Signed-off-by: Benoit Parrot <bparrot@ti.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/ti-vpe/vpdma.c
drivers/media/platform/ti-vpe/vpdma.h
drivers/media/platform/ti-vpe/vpdma_priv.h
drivers/media/platform/ti-vpe/vpe.c