summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEthan Chen <intervigil@gmail.com>2015-11-17 14:08:43 -0800
committerEthan Chen <intervigil@gmail.com>2015-11-17 14:08:43 -0800
commit48f63f9296d615f456bc1706f8b3ccb8c498bbcd (patch)
tree5eb7107b58df047e57e765c3f7b9f573e676f627 /src
parent3c6f5fde3690ffa109f0634272ab6671cca39c87 (diff)
downloadandroid_packages_apps_Camera2-48f63f9296d615f456bc1706f8b3ccb8c498bbcd.tar.gz
android_packages_apps_Camera2-48f63f9296d615f456bc1706f8b3ccb8c498bbcd.tar.bz2
android_packages_apps_Camera2-48f63f9296d615f456bc1706f8b3ccb8c498bbcd.zip
Don't attempt to convert degree to orientation enum twice
* Exif.getOrientation already calls getRotationForOrientationValues, which returns a degree value. Don't attempt to convert that degree value back into degrees, that makes no sense. Change-Id: Ie35a0683e2d36801a9130ec19e1b3aa1f48b92c2
Diffstat (limited to 'src')
-rw-r--r--src/com/android/camera/processing/imagebackend/TaskCompressImageToJpeg.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/android/camera/processing/imagebackend/TaskCompressImageToJpeg.java b/src/com/android/camera/processing/imagebackend/TaskCompressImageToJpeg.java
index 2e5976c46..e1d1689cc 100644
--- a/src/com/android/camera/processing/imagebackend/TaskCompressImageToJpeg.java
+++ b/src/com/android/camera/processing/imagebackend/TaskCompressImageToJpeg.java
@@ -95,8 +95,7 @@ public class TaskCompressImageToJpeg extends TaskJpegEncode {
*/
public Map<Integer, Integer> exifGetMinimalTags(ExifInterface exif) {
Map<Integer, Integer> map = new HashMap<>();
- map.put(ExifInterface.TAG_ORIENTATION,
- ExifInterface.getRotationForOrientationValue((short) Exif.getOrientation(exif)));
+ map.put(ExifInterface.TAG_ORIENTATION, Exif.getOrientation(exif));
map.put(ExifInterface.TAG_PIXEL_X_DIMENSION, exif.getTagIntValue(
ExifInterface.TAG_PIXEL_X_DIMENSION));
map.put(ExifInterface.TAG_PIXEL_Y_DIMENSION, exif.getTagIntValue(