搜索

244

主题

289

帖子

2158

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
2158
发表于 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)中新增
  1. case SENSOR_FEATURE_GET_PIXEL_RATE:

  2. switch (*feature_data) {

  3. case MSDK_SCENARIO_ID_CAMERA_CAPTURE_JPEG:

  4. *(MUINT32 *)(uintptr_t)(*(feature_data + 1)) =

  5. (imgsensor_info.cap.pclk /

  6. (imgsensor_info.cap.linelength - 80))*

  7. imgsensor_info.cap.grabwindow_width;

  8. break;



  9. case MSDK_SCENARIO_ID_VIDEO_PREVIEW:

  10. *(MUINT32 *)(uintptr_t)(*(feature_data + 1)) =

  11. (imgsensor_info.normal_video.pclk /

  12. (imgsensor_info.normal_video.linelength - 80))*

  13. imgsensor_info.normal_video.grabwindow_width;

  14. break;



  15. case MSDK_SCENARIO_ID_HIGH_SPEED_VIDEO:

  16. *(MUINT32 *)(uintptr_t)(*(feature_data + 1)) =

  17. (imgsensor_info.hs_video.pclk /

  18. (imgsensor_info.hs_video.linelength - 80))*

  19. imgsensor_info.hs_video.grabwindow_width;

  20. break;



  21. case MSDK_SCENARIO_ID_SLIM_VIDEO:

  22. *(MUINT32 *)(uintptr_t)(*(feature_data + 1)) =

  23. (imgsensor_info.slim_video.pclk /

  24. (imgsensor_info.slim_video.linelength - 80))*

  25. imgsensor_info.slim_video.grabwindow_width;

  26. break;



  27. case MSDK_SCENARIO_ID_CAMERA_PREVIEW:

  28. default:

  29. *(MUINT32 *)(uintptr_t)(*(feature_data + 1)) =

  30. (imgsensor_info.pre.pclk /

  31. (imgsensor_info.pre.linelength - 80))*

  32. imgsensor_info.pre.grabwindow_width;

  33. break;

  34. }

  35. break;
复制代码


回复

使用道具 举报

返回列表
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则


登录或注册
快速回复 返回顶部 返回列表