RK3288 usb camera rotation

 

System: Android 5.1 also applies Android 7.1

3288 board when the vertical screen, the camera is very serious stretch

Below the camera 90 achieve the rotation, just modify the rotation angle orientation.

diff --git a/hardware/rockchip/camera/CameraHal/CameraHal_Module.cpp b/hardware/rockchip/camera/CameraHal/CameraHal_Module.cpp
index 277f83f..aabd270 100755
--- a/hardware/rockchip/camera/CameraHal/CameraHal_Module.cpp
+++ b/hardware/rockchip/camera/CameraHal/CameraHal_Module.cpp
@@ -788,7 +788,7 @@ 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 = 0;
+                    camInfoTmp[cam_cnt&0x01].facing_info.orientation = 90;
                 }
 
                 memset(version,0x00,sizeof(version));
Published 13 original articles · won praise 15 · views 1215

Guess you like

Origin blog.csdn.net/qq_32017483/article/details/105362272