|
发表于 2021-9-7 16:30:17
6818 浏览 0 回复
camera image sensor driver template change for mt6761
[DESCRIPTION]
image sensor driver函数
static kal_uint32 feature_control(MSDK_SENSOR_FEATURE_ENUM feature_id,
UINT8 *feature_para, UINT32 *feature_para_len)中新增
- case SENSOR_FEATURE_GET_PIXEL_RATE:
- switch (*feature_data) {
- case MSDK_SCENARIO_ID_CAMERA_CAPTURE_JPEG:
- *(MUINT32 *)(uintptr_t)(*(feature_data + 1)) =
- (imgsensor_info.cap.pclk /
- (imgsensor_info.cap.linelength - 80))*
- imgsensor_info.cap.grabwindow_width;
- break;
- case MSDK_SCENARIO_ID_VIDEO_PREVIEW:
- *(MUINT32 *)(uintptr_t)(*(feature_data + 1)) =
- (imgsensor_info.normal_video.pclk /
- (imgsensor_info.normal_video.linelength - 80))*
- imgsensor_info.normal_video.grabwindow_width;
- break;
- case MSDK_SCENARIO_ID_HIGH_SPEED_VIDEO:
- *(MUINT32 *)(uintptr_t)(*(feature_data + 1)) =
- (imgsensor_info.hs_video.pclk /
- (imgsensor_info.hs_video.linelength - 80))*
- imgsensor_info.hs_video.grabwindow_width;
- break;
- case MSDK_SCENARIO_ID_SLIM_VIDEO:
- *(MUINT32 *)(uintptr_t)(*(feature_data + 1)) =
- (imgsensor_info.slim_video.pclk /
- (imgsensor_info.slim_video.linelength - 80))*
- imgsensor_info.slim_video.grabwindow_width;
- break;
- case MSDK_SCENARIO_ID_CAMERA_PREVIEW:
- default:
- *(MUINT32 *)(uintptr_t)(*(feature_data + 1)) =
- (imgsensor_info.pre.pclk /
- (imgsensor_info.pre.linelength - 80))*
- imgsensor_info.pre.grabwindow_width;
- break;
- }
- break;
复制代码
|
|
|
|
|
|
|
登录或注册
|