MTK+移植camera说明

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

MTK移植camera说明

1、裁剪模块

修改文件:config/tf902/ProjectConfig.mk

Eg\

config/tf902/ProjectConfig.mk

````````````````````````````````````````````

CUSTOM_HAL_EEPROM = dummy_eeprom

CUSTOM_HAL_FLASHLIGHT = constant_flashlight

CUSTOM_HAL_FMRADIO = mt6628

-CUSTOM_HAL_IMGSENSOR = ov8825_mipi_raw s5k8aayx_mipi_yuv

+CUSTOM_HAL_IMGSENSOR = gc2235mipi_raw gc0313mipi_yuv#ov8825_mipi_raw s5k8aa yx_mipi_yuv #添加摄像头模块,定义hal层

CUSTOM_HAL_LENS = ov8825af dummy_lens

CUSTOM_HAL_MAIN2_IMGSENSOR =

CUSTOM_HAL_MAIN_BACKUP_IMGSENSOR =

CUSTOM_HAL_MAIN_BACKUP_LENS = dummy_lens

-CUSTOM_HAL_MAIN_IMGSENSOR = ov8825_mipi_raw

+CUSTOM_HAL_MAIN_IMGSENSOR = gc2235mipi_raw #ov8825_mipi_raw #主摄像头在hal层的修改

CUSTOM_HAL_MAIN_LENS = ov8825af

CUSTOM_HAL_MSENSORLIB = mmc328x akm8975 ami304 yamaha530 mag3110 akmd8963 b mm050

CUSTOM_HAL_SENSORS = sensor

CUSTOM_HAL_SUB_BACKUP_IMGSENSOR =

CUSTOM_HAL_SUB_BACKUP_LENS = dummy_lens

-CUSTOM_HAL_SUB_IMGSENSOR = s5k8aayx_mipi_yuv

+CUSTOM_HAL_SUB_IMGSENSOR = gc0313mipi_yuv #s5k8aayx_mipi_yuv #副摄像头在hal 层的定义

CUSTOM_HAL_SUB_LENS = dummy_lens

CUSTOM_KERNEL_ACCELEROMETER = bma050

CUSTOM_KERNEL_ALSPS = cm36283

@@ -79,7 +79,7 @@ CUSTOM_KERNEL_FLASHLIGHT = constant_flashlight

CUSTOM_KERNEL_FM = mt6628

CUSTOM_KERNEL_HDMI =

CUSTOM_KERNEL_HEADSET = accdet

-CUSTOM_KERNEL_IMGSENSOR = ov8825_mipi_raw s5k8aayx_mipi_yuv

+CUSTOM_KERNEL_IMGSENSOR = gc2235mipi_raw gc0313mipi_yuv#ov8825_mipi_raw s5k 8aayx_mipi_yuv #添加摄像头在kernal 模块

CUSTOM_KERNEL_KPD = kpd

CUSTOM_KERNEL_LCM = bi097xn02_xga_dpi

CUSTOM_KERNEL_LEDS = mt65xx

+CUSTOM_KERNEL_MAIN_IMGSENSOR = gc2235mipi_raw #ov8825_mipi_raw #在底层定义主摄像头

CUSTOM_KERNEL_MAIN_LENS = ov8825af

CUSTOM_KERNEL_RTC = rtc

CUSTOM_KERNEL_SOUND = amp_6320pmic_spk

CUSTOM_KERNEL_SSW = ssw_generic

CUSTOM_KERNEL_SUB_BACKUP_IMGSENSOR =

CUSTOM_KERNEL_SUB_BACKUP_LENS = dummy_lens

-CUSTOM_KERNEL_SUB_IMGSENSOR = s5k8aayx_mipi_yuv

+CUSTOM_KERNEL_SUB_IMGSENSOR = gc0313mipi_yuv#s5k8aayx_mipi_yuv #在底层定义副摄像头

CUSTOM_KERNEL_SUB_LENS = dummy_lens

CUSTOM_KERNEL_TOUCHPANEL = GT82X #cy8ctma300 GT818B-fpga

CUSTOM_KERNEL_USB = mt6577

上面的修改是在平台没有默认AF(自动对焦)的功能(mtk6517和mtk6577\mtk6572的平台没有默认AF功能),mtk6589的平台默认就支持AF功能。如果移植的摄像头没有AF功能就必须将默认的AF功能屏蔽掉(否则在DMA操作数据的时候很多的算法受影响,将在切换的时候很卡)!

在没有AF功能,就将全部设置成dummy_lens。ov8825af 指的是自动对焦功能。

config/tf902/ProjectConfig.mk

·························

CUSTOM_HAL_EEPROM = dummy_eeprom

CUSTOM_HAL_FLASHLIGHT = constant_flashlight

CUSTOM_HAL_FMRADIO = mt6628

CUSTOM_HAL_IMGSENSOR = gc2235mipi_raw gc0313mipi_yuv#ov8825_mipi_raw s5k8aa yx_mipi_yuv

-CUSTOM_HAL_LENS = ov8825af dummy_lens

+CUSTOM_HAL_LENS = dummy_lens #ov8825af #hal层的副摄像头自动对焦设置

CUSTOM_HAL_MAIN2_IMGSENSOR =

CUSTOM_HAL_MAIN_BACKUP_IMGSENSOR =

CUSTOM_HAL_MAIN_BACKUP_LENS = dummy_lens

CUSTOM_HAL_MAIN_IMGSENSOR = gc2235mipi_raw #ov8825_mipi_raw

-CUSTOM_HAL_MAIN_LENS = ov8825af

+CUSTOM_HAL_MAIN_LENS =dummy_lens # ov8825af #hal层主摄像头的自动对焦功能

CUSTOM_HAL_MSENSORLIB = mmc328x akm8975 ami304 yamaha530 mag3110 akmd8963 b mm050

CUSTOM_HAL_SENSORS = sensor

CUSTOM_HAL_SUB_BACKUP_IMGSENSOR = ··························

CUSTOM_KERNEL_IMGSENSOR = gc2235mipi_raw gc0313mipi_yuv#ov8825_mipi_raw s5k 8aayx

CUSTOM_KERNEL_KPD = kpd

CUSTOM_KERNEL_LCM = bi097xn02_xga_dpi

CUSTOM_KERNEL_LEDS = mt65xx

相关文档
最新文档