summaryrefslogtreecommitdiffstats
path: root/libcamera
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2010-10-21 17:22:07 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-10-21 17:22:07 -0700
commit3e9219bcb3fa5b09520e1dbc848a94b8ffcc005a (patch)
treedf00264adfca84cebeb69ac0d2e92ed8f4058853 /libcamera
parentbbd15d16e0336b354e08f0e6357aca03fa7000b9 (diff)
parent25a7b38f7b22565d5472828781c8b6ee9103b082 (diff)
downloaddevice_samsung_crespo-3e9219bcb3fa5b09520e1dbc848a94b8ffcc005a.zip
device_samsung_crespo-3e9219bcb3fa5b09520e1dbc848a94b8ffcc005a.tar.gz
device_samsung_crespo-3e9219bcb3fa5b09520e1dbc848a94b8ffcc005a.tar.bz2
am 25a7b38f: Remove the hack to correct exif orientation.
Merge commit '25a7b38f7b22565d5472828781c8b6ee9103b082' * commit '25a7b38f7b22565d5472828781c8b6ee9103b082': Remove the hack to correct exif orientation.
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 4f114bc..a82ba7a 100644
--- a/libcamera/SecCameraHWInterface.cpp
+++ b/libcamera/SecCameraHWInterface.cpp
@@ -1654,16 +1654,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);