summaryrefslogtreecommitdiffstats
path: root/libcamera
diff options
context:
space:
mode:
Diffstat (limited to 'libcamera')
-rw-r--r--libcamera/SecCameraHWInterface.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/libcamera/SecCameraHWInterface.cpp b/libcamera/SecCameraHWInterface.cpp
index 12fc524..94b1a5d 100644
--- a/libcamera/SecCameraHWInterface.cpp
+++ b/libcamera/SecCameraHWInterface.cpp
@@ -1649,16 +1649,6 @@ status_t CameraHardwareSec::setParameters(const CameraParameters& params)
int new_exif_rotation = 1;
if (0 <= new_rotation) {
- // This is a temporary hack to correct the exif orientation of
- // front-facing camera. Now the picture is mirrored but it shouldn't.
- // The degrees of KEY_ROTATION is relative to the non-mirrored picture.
- if (new_camera_id == SecCamera::CAMERA_ID_FRONT) {
- if (new_rotation == 90) {
- new_rotation = 270;
- } else if (new_rotation == 270) {
- new_rotation = 90;
- }
- }
LOGV("%s : set orientation:%d\n", __func__, new_rotation);
if (mSecCamera->setExifOrientationInfo(new_rotation) < 0) {
LOGE("ERR(%s):Fail on mSecCamera->setExifOrientationInfo(%d)", __func__, new_rotation);