summaryrefslogtreecommitdiffstats
path: root/core/java/android/hardware
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2009-09-23 15:45:27 -0700
committerWu-cheng Li <wuchengli@google.com>2009-09-23 16:40:10 -0700
commite6bea600fe5600017a4824adb14752a5b915d164 (patch)
treefd60722d900a31f9aadbb4a69ac8430a73c8d34a /core/java/android/hardware
parent8799b96ea09d5fdd9904dd9de3002c0a9cd28fdc (diff)
downloadframeworks_base-e6bea600fe5600017a4824adb14752a5b915d164.zip
frameworks_base-e6bea600fe5600017a4824adb14752a5b915d164.tar.gz
frameworks_base-e6bea600fe5600017a4824adb14752a5b915d164.tar.bz2
Change setRotation documentaion.
Diffstat (limited to 'core/java/android/hardware')
-rw-r--r--core/java/android/hardware/Camera.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/core/java/android/hardware/Camera.java b/core/java/android/hardware/Camera.java
index 5f1a3c5..e47ea84 100644
--- a/core/java/android/hardware/Camera.java
+++ b/core/java/android/hardware/Camera.java
@@ -1093,17 +1093,18 @@ public class Camera {
}
/**
- * Sets the orientation of the device in degrees, which instructs the
- * camera driver to rotate the picture and thumbnail, in order to match
- * what the user sees from the viewfinder. For example, suppose the
- * natural position of the device is landscape. If the user takes a
+ * Sets the orientation of the device in degrees. For example, suppose
+ * the natural position of the device is landscape. If the user takes a
* picture in landscape mode in 2048x1536 resolution, the rotation
* should be set to 0. If the user rotates the phone 90 degrees
* clockwise, the rotation should be set to 90. Applications can use
* {@link android.view.OrientationEventListener} to set this parameter.
*
- * Since the picture is rotated, the orientation in the EXIF header is
- * missing or always 1 (row #0 is top and column #0 is left side).
+ * The camera driver may set orientation in the EXIF header without
+ * rotating the picture. Or the driver may rotate the picture and
+ * the EXIF thumbnail. If the Jpeg picture is rotated, the orientation
+ * in the EXIF header will be missing or 1 (row #0 is top and column #0
+ * is left side).
*
* @param rotation The orientation of the device in degrees. Rotation
* can only be 0, 90, 180 or 270.