|
发表于 2017-9-20 13:38:05
只看该作者
地板
试试看是否有效果
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[0] = 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[camera_id].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[camera_id].facing_info.orientation;
24 } |
|