media: amphion: tell and handle contiguous and non contiguous format
commit 2a8f1c6a28c160a7709b30d79bc8d4629510847e from https://github.com/nxp-imx/linux-imx lf-6.1.y 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> [Xiaolei: vpu_helper_find_format has been deleted, xiaolei changed this patch to apply the patch.] Signed-off-by: Xiaolei Wang <xiaolei.wang@windriver.com>
parent
d54b1ef3