MT6236在10A1032上进不了webcam
0赞[DESCRIPTION]
插入usb线,选webcam,打开webcam,电脑端webcam显示黑屏,按挂机键死机。在进入webcam时会调用
isp_grab_size_config()函数去配置grab window,在这个函数的webcam分支下会根据sensor_window-
>exposure_window_width与isp_grab_width的值计算Isp_grab_start_x、Isp_grab_start_yisp_grab_start_x +=
(((sensor_window->exposure_window_width )&0xFFFE – isp_grab_width)>>1)&0xFFFE;isp_grab_start_y +=
(((sensor_window->exposure_window_height)&0xFFFE – isp_grab_height)>>1)&0xFFFE;上述算式有时会按如下的过
程运算,1. 0xFFFE – isp_grab_width2. 按位与上sensor_window->exposure_window_width3. 右移一位再按位与
0xFFFE导致Isp_grab_start_x过大再加上isp_grab_width,超出实际范围
[KEYWORD]
MT6236
10A
Webcam
[SOLUTION]来自半导体社区
加入括号让sensor_window->exposure_window_width首先和0xFFFE进行按位与运算
isp_grab_start_x += ((((sensor_window->exposure_window_width )&0xFFFE) –
isp_grab_width)>>1)&0xFFFE;
isp_grab_start_y += ((((sensor_window->exposure_window_height)&0xFFFE) –
isp_grab_height)>>1)&0xFFFE;
Patch id: MAUI_02855533
Check in Branch: 10A
10A1032MP
10A1032MP_ASTRO
10A1048MP
10A1052MP