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>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
c27bb30e7b
commit
36cf35b786
@@ -243,7 +243,20 @@ please make a proposal on the linux-media mailing list.
|
||||
It is an opaque intermediate format and the MDP hardware must be
|
||||
used to convert ``V4L2_PIX_FMT_MT21C`` to ``V4L2_PIX_FMT_NV12M``,
|
||||
``V4L2_PIX_FMT_YUV420M`` or ``V4L2_PIX_FMT_YVU420``.
|
||||
* .. _V4L2-PIX-FMT-SUNXI-TILED-NV12:
|
||||
|
||||
- ``V4L2_PIX_FMT_SUNXI_TILED_NV12``
|
||||
- 'ST12'
|
||||
- Two-planar NV12-based format used by the video engine found on Allwinner
|
||||
(codenamed sunxi) platforms, with 32x32 tiles for the luminance plane
|
||||
and 32x64 tiles for the chrominance plane. The data in each tile is
|
||||
stored in linear order, within the tile bounds. Each tile follows the
|
||||
previous one linearly in memory (from left to right, top to bottom).
|
||||
|
||||
The associated buffer dimensions are aligned to match an integer number
|
||||
of tiles, resulting in 32-aligned resolutions for the luminance plane
|
||||
and 16-aligned resolutions for the chrominance plane (with 2x2
|
||||
subsampling).
|
||||
|
||||
.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
|
||||
|
||||
|
Reference in New Issue
Block a user