media: amphion: tell and handle contiguous and non contiguous format
authorMing Qian <ming.qian@nxp.com>
Thu, 25 Aug 2022 01:38:30 +0000 (02:38 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 25 Nov 2022 11:02:35 +0000 (11:02 +0000)
commitd21ce554e1fc9c02d1a7f61156f794648bddb98f
tree58d243dc477911d67b58b8568d93841397302dfd
parent5b8bb216e91a2f4f4d5b82739c0101b3922064e5
media: amphion: tell and handle contiguous and non contiguous format

Driver should tell the number of memory planes and component planes.
the amphion vpu support non contiguous planes,
but for compatibility with other device
that only support contiguous planes.
driver can add support for contiguous planes in the same time.
Then the mem_planes can be different from the comp_planes.
driver need to handle buffer according mem_planes and comp_planes.

So driver can support NV12 and NV12M.

Signed-off-by: Ming Qian <ming.qian@nxp.com>
Reviewed-by: Tommaso Merciai <tommaso.merciai@amarulasolutions.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/amphion/vdec.c
drivers/media/platform/amphion/venc.c
drivers/media/platform/amphion/vpu.h
drivers/media/platform/amphion/vpu_dbg.c
drivers/media/platform/amphion/vpu_helpers.c
drivers/media/platform/amphion/vpu_helpers.h
drivers/media/platform/amphion/vpu_malone.c
drivers/media/platform/amphion/vpu_v4l2.c
drivers/media/platform/amphion/vpu_v4l2.h
drivers/media/platform/amphion/vpu_windsor.c