Loading services/camera/libcameraservice/CameraService.cpp +3 −8 Original line number Diff line number Diff line Loading @@ -1295,7 +1295,9 @@ void CameraService::Client::copyFrameAndPostCopiedFrame( } int CameraService::Client::getOrientation(int degrees, bool mirror) { #ifndef BOARD_USE_FROYO_LIBCAMERA if (!mirror) { #endif if (degrees == 0) return 0; else if (degrees == 90) return HAL_TRANSFORM_ROT_90; else if (degrees == 180) return HAL_TRANSFORM_ROT_180; Loading @@ -1312,13 +1314,6 @@ int CameraService::Client::getOrientation(int degrees, bool mirror) { return HAL_TRANSFORM_FLIP_V | HAL_TRANSFORM_ROT_90; } } #else } else { if (degrees == 0) return HAL_TRANSFORM_ROT_180; else if (degrees == 90) return HAL_TRANSFORM_ROT_270; else if (degrees == 180) return 0; else if (degrees == 270) return HAL_TRANSFORM_ROT_90; } #endif LOGE("Invalid setDisplayOrientation degrees=%d", degrees); return -1; Loading Loading @@ -1407,7 +1402,7 @@ static const CameraInfo sCameraInfo[] = { }, { CAMERA_FACING_FRONT, 90, /* orientation */ 270, /* orientation */ } }; Loading Loading
services/camera/libcameraservice/CameraService.cpp +3 −8 Original line number Diff line number Diff line Loading @@ -1295,7 +1295,9 @@ void CameraService::Client::copyFrameAndPostCopiedFrame( } int CameraService::Client::getOrientation(int degrees, bool mirror) { #ifndef BOARD_USE_FROYO_LIBCAMERA if (!mirror) { #endif if (degrees == 0) return 0; else if (degrees == 90) return HAL_TRANSFORM_ROT_90; else if (degrees == 180) return HAL_TRANSFORM_ROT_180; Loading @@ -1312,13 +1314,6 @@ int CameraService::Client::getOrientation(int degrees, bool mirror) { return HAL_TRANSFORM_FLIP_V | HAL_TRANSFORM_ROT_90; } } #else } else { if (degrees == 0) return HAL_TRANSFORM_ROT_180; else if (degrees == 90) return HAL_TRANSFORM_ROT_270; else if (degrees == 180) return 0; else if (degrees == 270) return HAL_TRANSFORM_ROT_90; } #endif LOGE("Invalid setDisplayOrientation degrees=%d", degrees); return -1; Loading Loading @@ -1407,7 +1402,7 @@ static const CameraInfo sCameraInfo[] = { }, { CAMERA_FACING_FRONT, 90, /* orientation */ 270, /* orientation */ } }; Loading