Commit cb6d000f authored by Xavier Roumegue's avatar Xavier Roumegue Committed by Mauro Carvalho Chehab
Browse files

media: dw100: Add i.MX8MP dw100 dewarper driver



Add a V4L2 mem-to-mem driver for the Vivante DW100 Dewarp Processor IP
core found on i.MX8MP SoC.

The processor core applies a programmable geometrical transformation on
input images to correct distorsion introduced by lenses.
The transformation function is exposed as a grid map with 16x16 pixel
macroblocks indexed using X, Y vertex coordinates.

The dewarping map can be set from application through a dedicated v4l2
control. If not set or invalid, the driver computes an identity map
prior to starting the processing engine.

The driver supports scaling, cropping and pixel format conversion.

Signed-off-by: default avatarXavier Roumegue <xavier.roumegue@oss.nxp.com>
Reviewed-by: default avatarEzequiel Garcia <ezequiel@vanguardiasur.com.ar>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 1301663c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -51,4 +51,5 @@ config VIDEO_MX2_EMMAPRP
	    memory to memory. Operations include resizing and format
	    conversion.

source "drivers/media/platform/nxp/dw100/Kconfig"
source "drivers/media/platform/nxp/imx-jpeg/Kconfig"
+1 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only

obj-y += dw100/
obj-y += imx-jpeg/

obj-$(CONFIG_VIDEO_IMX_MIPI_CSIS) += imx-mipi-csis.o
+16 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only

config VIDEO_DW100
	tristate "NXP i.MX DW100 dewarper"
	depends on V4L_MEM2MEM_DRIVERS
	depends on VIDEO_DEV
	depends on ARCH_MXC || COMPILE_TEST
	select MEDIA_CONTROLLER
	select V4L2_MEM2MEM_DEV
	select VIDEOBUF2_DMA_CONTIG
	help
	  DW100 is a memory-to-memory engine performing geometrical
	  transformation on source images through a programmable dewarping map.

	  To compile this driver as a module, choose M here: the module
	  will be called dw100.
+3 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0+

obj-$(CONFIG_VIDEO_DW100) += dw100.o
+1706 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading