rp-jeff 发表于 2018-12-15 14:47:20

荣品6818修改摄像头旋转角度

该功能支持Android系统

代码:lollipop_2nd_release\device\nexell\s5p6818_drone\camera\board-camera.cpp

函数:
uint32_t get_board_camera_orientation(int cameraId)

uint32_t get_board_camera_orientation(int cameraId)
{
    switch (cameraId) {
    case 0:
      return 0;
    case 1:
      return 0;
    default:
      return 0;
    }
}

后置摄像头修改90度
uint32_t get_board_camera_orientation(int cameraId)
{
    switch (cameraId) {
    case 0:
       return 90;
    case 1:
      return 0;
    default:
      return 0;
    }
}


修改后编译android系统
. ./make.sh android

生成新的system.img

烧写到板子就可以实现了。






页: [1]
查看完整版本: 荣品6818修改摄像头旋转角度