rk3288 摄像头向左翻转90%显示如何修改
rk3288用的是官方自带的摄像头,现在向右翻转90%显示正中,请问怎么修改驱动代码 hardware/rockchip/camera/CameraHal/CameraHal_Module.cpp 看下这个 loading 发表于 2017-8-15 10:47hardware/rockchip/camera/CameraHal/CameraHal_Module.cpp 看下这个
你好,好复杂,怎么改?camera几也不知道;希望详细指导 loger 发表于 2017-9-19 22:28
你好,好复杂,怎么改?camera几也不知道;希望详细指导
试试看是否有效果
1 Index: hardware/rockchip/camera/CameraHal/CameraHal_Module.cpp
2 ===================================================================
3 --- hardware/rockchip/camera/CameraHal/CameraHal_Module.cpp (revision 465)
4 +++ hardware/rockchip/camera/CameraHal/CameraHal_Module.cpp (working copy)
5 @@ -1283,7 +1283,7 @@
6 goto end;
7 }
8
9 -#if CONFIG_CAMERA_ORIENTATION_SKYPE
10 +#if 1//CONFIG_CAMERA_ORIENTATION_SKYPE
11 process_name = 0x00;
12 sprintf(process_name,"/proc/%d/cmdline",getCallingPid());
13 fp = open(process_name, O_RDONLY);
14 @@ -1298,8 +1298,8 @@
15 }
16
17 info->facing = gCamInfos.facing_info.facing;
18 - if (strstr(process_name,"com.skype.rover")) {
19 - info->orientation = (info->facing == CAMERA_FACING_BACK)? CONFIG_CAMERA_BACK_ORIENTATION_SKYPE : CONFIG_CAMERA_FRONT_ORIENTATION_SKYPE;
20 + if (1/*strstr(process_name,"com.skype.rover")*/) {
21 + info->orientation = 90;//(info->facing == CAMERA_FACING_BACK)? CONFIG_CAMERA_BACK_ORIENTATION_SKYPE : CONFIG_CAMERA_FRONT_ORIENTATION_SKYPE;
22 } else {
23 info->orientation = gCamInfos.facing_info.orientation;
24 } loading 发表于 2017-9-20 13:38
试试看是否有效果
1 Index: hardware/rockchip/camera/CameraHal/CameraHal_Module.cpp ...
你好,非常感谢你的回复,我们用作前置摄像头,摄像头的成像是左右相反,请问怎么修改,麻烦了,现在就剩这个问题了 loger 发表于 2017-11-21 09:34
你好,非常感谢你的回复,我们用作前置摄像头,摄像头的成像是左右相反,请问怎么修改,麻烦了,现在就剩 ...
frameworks/av/services/camera/libcameraservice/api1/CameraClient.cpp
int CameraClient::getOrientation(int degrees, bool mirror)
这个里面mirror 为true or false 试试 你好请问 这问题在rk3399 android 9.0 上要怎么修改 ,9.0 和8.1 还有7.1在hardware下差异比较大/
页:
[1]