Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WA patch to fix rotation 90deg issue #1241

Open
wants to merge 1 commit into
base: celadon/r/mr0/stable
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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

Loading