找回密码
立即注册
搜索
发新帖

321

积分

0

好友

23

主题
发表于 2018-12-15 14:42:49 | 查看: 3612| 回复: 0

该功能支持Android系统

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

函数:
uint32_t get_board_camera_orientation(int cameraId)

  1. uint32_t get_board_camera_orientation(int cameraId)
  2. {
  3.     switch (cameraId) {
  4.     case 0:
  5.         return 0;
  6.     case 1:
  7.         return 0;
  8.     default:
  9.         return 0;
  10.     }
  11. }
复制代码


后置摄像头修改90度
  1. uint32_t get_board_camera_orientation(int cameraId)
  2. {
  3.     switch (cameraId) {
  4.     case 0:
  5.        return 90;
  6.     case 1:
  7.         return 0;
  8.     default:
  9.         return 0;
  10.     }
  11. }
复制代码



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

生成新的system.img

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




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

小黑屋|Archiver|手机版|深圳荣品电子  

GMT+8, 2024-4-24 12:20 , Processed in 0.076384 second(s), 20 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表