media: imx-jpeg: Add V4L2 driver for i.MX8 JPEG Encoder/Decoder
authorMirela Rabulea <mirela.rabulea@nxp.com>
Thu, 11 Mar 2021 08:53:17 +0000 (09:53 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 22 Mar 2021 09:47:21 +0000 (10:47 +0100)
commit2db16c6ed72ce644d5639b3ed15e5817442db4ba
tree5443c2dc871a41ef7943418f3e92664c4f14a3b2
parent819f3ea51d476dec23e11586a70f47972d61c00a
media: imx-jpeg: Add V4L2 driver for i.MX8 JPEG Encoder/Decoder

V4L2 driver for the JPEG encoder/decoder from i.MX8QXP/i.MX8QM application
processors.
The multi-planar buffers API is used.

Baseline and extended sequential jpeg decoding is supported.
Progressive jpeg decoding is not supported by the IP.
Supports encode and decode of various formats:
     YUV444, YUV422, YUV420, RGB, ARGB, Gray
YUV420 is the only multi-planar format supported.
Minimum resolution is 64 x 64, maximum 8192 x 8192.
The alignment requirements for the resolution depend on the format,
multiple of 16 resolutions should work for all formats.

v4l2-compliance tests are passing, including the
streaming tests, "v4l2-compliance -s"

[hverkuil: fix kernel-doc typos]

Signed-off-by: Mirela Rabulea <mirela.rabulea@nxp.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/Kconfig
drivers/media/platform/Makefile
drivers/media/platform/imx-jpeg/Kconfig [new file with mode: 0644]
drivers/media/platform/imx-jpeg/Makefile [new file with mode: 0644]
drivers/media/platform/imx-jpeg/mxc-jpeg-hw.c [new file with mode: 0644]
drivers/media/platform/imx-jpeg/mxc-jpeg-hw.h [new file with mode: 0644]
drivers/media/platform/imx-jpeg/mxc-jpeg.c [new file with mode: 0644]
drivers/media/platform/imx-jpeg/mxc-jpeg.h [new file with mode: 0644]