mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-01 15:14:52 +00:00

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: Xavier Roumegue <xavier.roumegue@oss.nxp.com> Reviewed-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
17 lines
497 B
Plaintext
17 lines
497 B
Plaintext
# 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.
|