summaryrefslogtreecommitdiffstats
path: root/libcamera/SecCameraHWInterface.cpp
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2010-10-20 12:10:52 +0800
committerSimon Wilson <simonwilson@google.com>2010-10-21 16:25:40 -0700
commit25a7b38f7b22565d5472828781c8b6ee9103b082 (patch)
treeef1974680b649cbfcc7fcb74854ad973bee7e707 /libcamera/SecCameraHWInterface.cpp
parent7347630930ef047b787dbc2b435d1e72857e8e47 (diff)
downloaddevice_samsung_crespo-25a7b38f7b22565d5472828781c8b6ee9103b082.zip
device_samsung_crespo-25a7b38f7b22565d5472828781c8b6ee9103b082.tar.gz
device_samsung_crespo-25a7b38f7b22565d5472828781c8b6ee9103b082.tar.bz2
Remove the hack to correct exif orientation.
The front-facing camera frames are un-mirrored. This hack is no longer necessary. bug:3059865 Change-Id: I5b8f3ea660abdc5c68c0d7d1b71878109336477d
Diffstat (limited to 'libcamera/SecCameraHWInterface.cpp')
-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);