Skip to content

Commit

Permalink
WA patch to fix rotation 90deg issue
Browse files Browse the repository at this point in the history
  • Loading branch information
gkdeepa committed Oct 30, 2021
1 parent 5dbb8bd commit 1322d75
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions aosp_diff/caas_cfc/frameworks/av/0002-WA-for-rotation-issue.patch
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

0 comments on commit 1322d75

Please sign in to comment.