MediaTek Imgsensor

The following figure shows the MediaTek Imgsensor architecture with the camera ISP and RAW/YUV sensors.

../../../../_images/sw_yocto_app-dev_raw_camera_arch.svg

MediaTek Imgsensor - RAW Camera

../../../../_images/sw_yocto_app-dev_yuv_camera_arch.svg

MediaTek Imgsensor - YUV Camera

The Camera ISP feature includes 4 major components:

Camera ISP Feature Components

Item

Description

Repo Path

Sensor Driver

The Linux kernel driver under MediaTek Imgsensor architecture controls the sensor. It’s maintained in the out-of-tree repository.

mtk-camisp-driver/drivers/misc/mediatek/imgsensor

ISP Driver

The Linux kernel driver controls MediaTek camera ISP hardware. It’s maintained in the out-of-tree repository.

mtk-camisp-driver/drivers/media/platform/mtk-isp

Camera Middleware

The binary-released userspace library controls the whole ISP devices, manages buffers and streams, and exports MediaTek proprietary interface.

mtk-camisp-prebuilts (Require NDA)

V4L2 Adapter

The V4L2 Adapter contains the binary-released userspace executable and source-released kernel driver.

The executable, camd, is a service daemon. It uses the middleware library to control the camera and transfer image buffers to the adapter driver.

The driver, mtk-camera, provides the V4L2 interface which can be used by OSS tools, such as v4l2-utils, GStreamer, OpenCV, etc.

mtk-camisp-prebuilts (Require NDA)

mtk-camisp-driver/drivers/media/platform/mtk-camera

V4L2 Sensor

The following figure shows the V4L2 sensor architecture with the YUV sensor. The sensor driver and the camsys driver follow the V4L2 framework. The user can access the video device node created by the camsys driver to get the pipeline stream on.

../../../../_images/sw_yocto_app-dev_v4l2_yuv_camera_arch.svg

V4L2 Sensor - YUV Camera