MTK platform to query the current camera module and the supported preview resolution

Source: Internet
Author: User

How does the 1,MTK platform query which camera and associated module information is currently in use?

In this directory you can find the current platform and related project configuration file projectconfig.mk

\alps. Jb. Mp. V1_w_20120919\mediatek\config\project**\

This file is configured with information such as the hardware chip used in the current project

If this refers to the chip information used by the radio

Custom_hal_fmradio = mt6628

The following refers to the ROM chip used in the current project.
Custom_hal_eeprom=imx111otp_eeprom

Flash information
Custom_hal_flashlight=dummy_flashlight

Imagesensor that can be configured in the current project
custom_hal_imgsensor= Ov5647_mipi_raw A5141_mipi_raw OV2659_YUV MT9D113_YUV

Lens information
CUSTOM_HAL_LENS=FM50AF Dummy_lens

Main lens Information
Custom_hal_main_lens=fm50af

Imagesensor used by the main camera
Custom_hal_main_imgsensor= Ov5647_mipi_raw

Sound processing chip
custom_hal_msensorlib= yamaha532 #hscdtd004a #yamaha530

Main camera Another kind of imagesensor, generally do not take effect
Custom_hal_main_backup_imgsensor=a5141_mipi_raw

Imagesensor used by the secondary camera

Custom_hal_sub_imgsensor=ov2659_yuv

Custom_hal_sub_backup_imgsensor=mt9d113_yuv

There are a lot of other hardware information, not listed ...

2, how can I query the preview resolution supported by the current sensor? How do I add a preview resolution to the current sensor?

\alps. Jb. Mp. V1_w_20120919\mediatek\custom\project**\hal\camera\camera

There is a cfg_ftbl_custom_raw_main.h file in the directory where you can see the Imagesensor related configuration information

Preview size as shown below

#if 1
Preview Size
Config_feature (Fid_preview_size,
By_default (preview_size_320_240),
preview_size_176_144, preview_size_320_240,
preview_size_352_288, preview_size_480_368,
preview_size_640_480, preview_size_720_480, preview_size_800_480,
preview_size_864_480, preview_size_1280_720, preview_size_1920_1080
)
#endif

If we need to add a resolution to the imagesensor, we just need to put it in the feature, like preview_size_480_320,

The secondary camera is similar, the file directory is not the same: \alps. Jb. Mp. V1_w_20120919\mediatek\custom\mt65**\hal\camera\camera\cfg_ftbl_custom_yuv_sub.h

4, how to quickly compile this part of the code after the modification?

Before modifying the hardware-related parts, I do not know which directory to compile, are remake. It's going to waste a lot of time.

After listening to people say only need to compile the following modules.

./makemtk-t mm mediatek/platform/mt65**/hardware/camera/custom/will compile a library file like this libcameracustom.so, push it into the phone, then execute: ADB Shell Stop mediaadb Shell start media through the log you can see that there will be more than one preview size in the Imagesensor

If you want to further add this resolution in the camera also need to modify the Mediaprofiles file, you can refer to a previous blog, with links:

How to add a preview size to the camera on the MTK platform

Transferred from: http://blog.csdn.net/fulinwsuafcie/article/details/8709192

MTK platform to query the current camera module and the supported preview resolution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.