-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WA patch to fix rotation 90deg issue
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
aosp_diff/caas_cfc/frameworks/av/0002-WA-for-rotation-issue.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
From 7ebc1473b2ded978d38728519569d8e5e5a03e0b Mon Sep 17 00:00:00 2001 | ||
From: gkdeepa <[email protected]> | ||
Date: Sat, 30 Oct 2021 13:43:42 +0530 | ||
Subject: [PATCH] WA for rotation issue | ||
|
||
Tracked-On: | ||
--- | ||
services/camera/libcameraservice/api1/client2/Parameters.cpp | 3 ++- | ||
1 file changed, 2 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/services/camera/libcameraservice/api1/client2/Parameters.cpp b/services/camera/libcameraservice/api1/client2/Parameters.cpp | ||
index dbc863b3ad..1802ad30f1 100644 | ||
--- a/services/camera/libcameraservice/api1/client2/Parameters.cpp | ||
+++ b/services/camera/libcameraservice/api1/client2/Parameters.cpp | ||
@@ -2830,7 +2830,8 @@ bool Parameters::boolFromString(const char *boolStr) { | ||
int Parameters::degToTransform(int degrees, bool mirror) { | ||
if (!mirror) { | ||
if (degrees == 0) return 0; | ||
- else if (degrees == 90) return HAL_TRANSFORM_ROT_90; | ||
+ //else if (degrees == 90) return HAL_TRANSFORM_ROT_90; | ||
+ else if (degrees == 90) return 0; | ||
else if (degrees == 180) return HAL_TRANSFORM_ROT_180; | ||
else if (degrees == 270) return HAL_TRANSFORM_ROT_270; | ||
} else { // Do mirror (horizontal flip) | ||
-- | ||
2.17.1 | ||
|