Sprd OTP and Preview
2021-09-28 15:54:56 0 举报
Sprd OTP and Preview
作者其他创作
大纲/内容
12:传感器和镜头
20:
15:
该函数设置preview的参数信息,然后继续调用cmr_preview_start方法
span style=\"font-size: inherit;\
该函数主要做了以下事情:1.sensor初始化2.grab初始化3.res初始化4.isp初始化5.camera_jpeg_init_async
SprdCamera3Multicamera.cpp
32:
13:
14.2:
cmr_thread_msg_send
9:
25:
camera_get_otpinfo
SprdCamera3Factory.cpp
7:
sensor_drv_get_dynamic_info
8:
3:
ispVideoStartPreview()
15:
开始预览:
sensor_otp_module_init(sensor_cxt)
sensor_drv_u.c
libcamera\\sensor\\otp_cali
21:初始化OTP参数:input_para: hw_handle sensor_name sensor_id sensor_ic_addr eeprom_i2c_addr eeprom_num eeprom_size sensor_max_width sensor_max_height
general_otp_drv.c
9:
SprdOEMCamera.c
10:camera_init
11:
4:
Otp_cali.c
这里主要调用cmr_thread_msg_send发送两条msg消息
33:
读取OTP数据
此处设类型为:CAMERA_CHANNEL_TYPE_REGULAR
13:OTP
14:
sensor_otp_process
21:
10:
18:
cmr_sns_create_thread(handle)
openCamera(hw_device)
#define OTP_CALI_BOKEH_PATH \"/data/vendor/local/otpdata/otp_cali_bokeh.bin\"or/vendor/etc/otpdata/otp_cali_bokeh_gld2_modulename.bin
sensor_drv_get_module_otp_data
1:
cmr_sensor_read_calibration_otp
SprdCamera3Channel.cpp
cmr_handle sensor_handle;init_param.oem_handle = oem_handle;init_param.is_autotest= is_autotest;
16:
cmr_sensor.c
22:
cmr_oem.c
openCamera()
14:
read_calibration_otp
cmr_preview.c
2:
12:
23:
cmr_msg.c
24:
22:
从oem层 获取DualOTP信息
1.初始化ctx(context)这个结构体2.初始化exif信息(拍照信息)3.加载sensor file文件,里面保存了camera的id4.根据sensor file里保存的camera 的id打开摄像头
21:
startPreviewInternal()
Cmr_sensor.c
16:
sensor_otp_module_init
new SprdCamera3HWI(multiCameraModeIdToPhyId(camera_id))
在SprdCamera3OEMIf中初始化一系列参数如cameraId及mHalOem
处理返回的OTP数据
能够使用mHalOem,以及cameraId等参数
14.1:
在cmr_sensor_open中,发送了msg消息,去启动在cmr_sensor_init创建的线程cmr_sns_thread_proc。这里的消息类型是message.msg_type = CMR_SENSOR_EVT_OPEN;
SprdCamera3HWI.cpp
regularChannel->start(dev->mFrameNum)
SprdCamera3OEMIf.cpp
30:
6:
sensor_read_calibration_otp
5:
sensor_drv_ic_identify:1、sensor_get_module_cfg_info
19:
otp_common.c
sensor_otp_module_deinit
sensor_otp_create
23:
20:
如果类型为CAMERA_CHANNEL_TYPE_PICTURE,则调用拍照相关:ret = takePicture();ret = zslTakePicture();ret = VideoTakePicture();
Cmr_oem.c
31:
17:
11:gpu
0 条评论
回复 删除
下一页