默认android系统会镜像前摄,某些场合需要不镜像,修改如下:
diff --git a/frameworks/av/camera/CameraUtils.cpp b/frameworks/av/camera/CameraUtils.cpp
index d2b730cbd5a..309120fc98f 100644
--- a/frameworks/av/camera/CameraUtils.cpp
+++ b/frameworks/av/camera/CameraUtils.cpp
@@ -57,7 +57,7 @@ status_t CameraUtils::getRotationTransform(const CameraMetadata& staticInfo,
int32_t& flags = *transform;
char property_value[PROPERTY_VALUE_MAX] = {0};
- bool mirror = (entryFacing.data.u8[0] == ANDROID_LENS_FACING_FRONT);
+ bool mirror = false;//(entryFacing.data.u8[0] == ANDROID_LENS_FACING_FRONT); // roy@nh3588
int orientation = entry.data.i32[0];
property_get("persist.firefly.camera.orientation", property_value, "0");
if (atoi(property_value) == 90 || 180 || 270){