RK3288 usb 摄像头旋转
2024-08-27 13:37:38
系统: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));
最新文章
- C#设计模式之原型模式
- ASP.NET:注销功能实现
- sftp上传 - 待完
- asp.net用url重写URLReWriter实现任意二级域名
- ACM - 动态规划专题 题目整理
- JQuery 中的Ajax
- OD: Exploit Me - Inject Instruction
- Byte Array to Hexadecimal String
- CSS Content 属性
- php header解决跨域问题
- SpriteBuilder中音频文件格式的需要注意的地方
- 【Mybatis】【3】mybatis Example Criteria like 模糊查询
- 洛谷 P1141 01迷宫
- H - The Frog's Games
- Python常用第三方模块(长期更新)
- ccTouchBegan
- appium+python自动化34-获取元素属性get_attribute
- android intent 传数据
- 【项目总结】:怎样做一个牛逼的Team leader?
- ParseChat应用源代码ios版