media: v4l: Add definition for the Sunxi tiled NV12 format
authorPaul Kocialkowski <paul.kocialkowski@bootlin.com>
Thu, 13 Sep 2018 14:51:53 +0000 (10:51 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 24 Sep 2018 13:55:19 +0000 (09:55 -0400)
commit36cf35b7864002c2601e4bda4d78d5622ad92544
tree5b613eae205e9fe32621e03eb1832965a2f2e8a1
parentc27bb30e7b6d385c5bff26406089377d678f1a1d
media: v4l: Add definition for the Sunxi tiled NV12 format

This introduces support for the Sunxi tiled NV12 format, where each
component of the YUV frame is divided into macroblocks. Hence, the size
of each plane requires specific alignment. The pixels inside each
macroblock are coded in linear order (line after line from top to
bottom).

This tiled NV12 format is used by the video engine on Allwinner
platforms: it is the default format for decoded frames (and the only
one available in the oldest supported platforms).

Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Documentation/media/uapi/v4l/pixfmt-reserved.rst
drivers/media/v4l2-core/v4l2-ioctl.c
include/uapi/linux/videodev2.h