系统:Android 5.1

下面实现了摄像头 180 度旋转,旋转角度只需修改 orientation。

diff --git a/hardware/rockchip/camera/CameraHal/CameraHal_Module.cpp b/hardware/rockchip/camera/CameraHal/CameraHal_Module.cpp
index 277f83f..aabd270
--- a/hardware/rockchip/camera/CameraHal/CameraHal_Module.cpp
+++ b/hardware/rockchip/camera/CameraHal/CameraHal_Module.cpp
@@ -, +, @@ int camera_get_number_of_cameras(void)
ptr++;
camInfoTmp[cam_cnt&0x01].facing_info.orientation = atoi(ptr);
} else {
- camInfoTmp[cam_cnt&0x01].facing_info.orientation = ;
+ camInfoTmp[cam_cnt&0x01].facing_info.orientation = ;
} memset(version,0x00,sizeof(version));

最新文章

  1. C#设计模式之原型模式
  2. ASP.NET:注销功能实现
  3. sftp上传 - 待完
  4. asp.net用url重写URLReWriter实现任意二级域名
  5. ACM - 动态规划专题 题目整理
  6. JQuery 中的Ajax
  7. OD: Exploit Me - Inject Instruction
  8. Byte Array to Hexadecimal String
  9. CSS Content 属性
  10. php header解决跨域问题
  11. SpriteBuilder中音频文件格式的需要注意的地方
  12. 【Mybatis】【3】mybatis Example Criteria like 模糊查询
  13. 洛谷 P1141 01迷宫
  14. H - The Frog's Games
  15. Python常用第三方模块(长期更新)
  16. ccTouchBegan
  17. appium+python自动化34-获取元素属性get_attribute
  18. android intent 传数据
  19. 【项目总结】:怎样做一个牛逼的Team leader?
  20. ParseChat应用源代码ios版

热门文章

  1. 【Python】偏函数
  2. 【hive】lateral view的使用
  3. FreeMarker初探--安装FreeMarker
  4. LNMP的搭建与原理
  5. Annotation方式实现AOP
  6. New Concept English there (2)Typing speed exercise
  7. C语言动态库和静态库的使用及实践
  8. c# 系统校时工具类
  9. DIV css中cursor属性详解-鼠标移到图片变换鼠标形状 (转)
  10. 实现DQN算法玩CartPole