![NXP Semiconductors ASUG Скачать руководство пользователя страница 22](http://html1.mh-extra.com/html/nxp-semiconductors/asug/asug_user-manual_1721768022.webp)
• For i.MX 8M Nano EVK board, the source folder is
${MY_ANDROID}/device/fsl/imx8m/evk_8mn/
BoardConfig.mk
.
• For i.MX 8QuadXPlus MEK board, the source folder is
${MY_ANDROID}/device/fsl/imx8q/mek_8q/
BoardConfig.mk
.
NOTE
8.2 How to configure the rear and front cameras
Property "back_camera_name" and "front_camera_name" are used to configure which camera to be used as the rear camera or
front camera.
The name should be either
v4l2_dbg_chip_ident.match.name
returned from v4l2's IOCTL VIDIOC_DBG_G_CHIP_IDENT or
v4l2_capability.driver
returned from v4l2's IOCTL VIDIOC_QUERYCAP.
Camera HAL goes through all the V4L2 devices in the system. Camera HAL chooses the first matched name in property settings
as the corresponding camera. Comma is used as a delimiter of different camera name among multiple-camera selection.
The following is an example set in ${MY_ANDROID}/device/fsl/imx8m/evk_8mm/init.rc.
setprop back_camera_name mx6s-csi
setprop front_camera_name uvc
media_profiles_V1_0.xml
in
/vendor/etc
is used to configure the parameters used in the recording video. NXP provides
several media profile examples that help customer align the parameters with their camera module capability and device definition.
Table 15. Media profile parameters
Profile file name
Rear camera
Front camera
media_profiles_1080p.xml
Maximum to 1080P, 30FPS and 8 Mbps
for recording video
Maximum to 720P, 30FPS, and 3 Mbps
for recording video
media_profiles_720p.xml
Maximum to 720P, 30FPS, and 3 Mbps
for recording video
Maximum to 720P, 30FPS, and 3 Mbps
for recording video
media_profiles_480p.xml
Maximum to 480P, 30FPS, and 2 Mbps
for recording video
Maximum to 480P, 30FPS, and 2 Mbps
for recording video
media_profiles_qvga.xml
Maximum to QVGA, 15FPS, and 128
Kbps for recording video
Maximum to QVGA, 15FPS, and 128
Kbps for recording video
Because not all UVC cameras can have 1080P, 30FPS resolution setting, it is recommended that
media_profiles_480p.xml
is used for any board's configuration, which defines the UVC as the rear camera
or front camera.
NOTE
8.3 How to configure camera sensor parameters
Camera sensor parameters are used to calculate view angle when doing panorama. The focal length and sensitive element size
should be customized based on the camera sensor being used. The default release have the parameters for OV5640 as the
front/back camera.
Ov5640xxx.cpp in vendor/nxp-opensource/imx/libcamera3 are provided to configure sensor. They implement class OV5640xxx.
For a new camera sensor, a new camera sensor class should be created with the corresponding focal length and sensitive
element size as the variables mFocalLength, mPhysical.
NXP Semiconductors
Customized Configuration
Android
™
User's Guide, Rev. P9.0.0_2.3.2, 6 March 2020
User's Guide
22 / 31