media: gpu: ipu-v3: Add planar support to interlaced scan
commit9b5c8d5ffb20cc4f4b1476cb1ad57e0f9b934788
authorSteve Longerbeam <slongerbeam@gmail.com>
Wed, 9 Jan 2019 18:30:06 +0000 (9 13:30 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 16 Jan 2019 19:12:20 +0000 (16 14:12 -0500)
treeeaeabe3d984667fe020a926f8f7e33d8b520127d
parentfc8c723852380b0f4349bb06cf553a6bba47462e
media: gpu: ipu-v3: Add planar support to interlaced scan

To support interlaced scan with planar formats, cpmem SLUV must
be programmed with the correct chroma line stride. For full and
partial planar 4:2:2 (YUV422P, NV16), chroma line stride must
be doubled. For full and partial planar 4:2:0 (YUV420, YVU420, NV12),
chroma line stride must _not_ be doubled, since a single chroma line
is shared by two luma lines.

Signed-off-by: Steve Longerbeam <slongerbeam@gmail.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/gpu/ipu-v3/ipu-cpmem.c
drivers/staging/media/imx/imx-ic-prpencvf.c
drivers/staging/media/imx/imx-media-csi.c
include/video/imx-ipu-v3.h