summaryrefslogtreecommitdiffstats
path: root/gallerycommon/src
diff options
context:
space:
mode:
authorEarl Ou <shunhsingou@google.com>2012-12-07 16:01:09 +0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-12-19 05:27:19 -0800
commitacc9b347ded215b08ea09263812525efafd91b13 (patch)
treee322970c9afcb90125ce5c6643bae061f4f25926 /gallerycommon/src
parentcdeb78889a0a69de640fecabc40e00b106417ab8 (diff)
downloadandroid_packages_apps_Snap-acc9b347ded215b08ea09263812525efafd91b13.tar.gz
android_packages_apps_Snap-acc9b347ded215b08ea09263812525efafd91b13.tar.bz2
android_packages_apps_Snap-acc9b347ded215b08ea09263812525efafd91b13.zip
add javadoc for Rational and IfdId in Exif package
Change-Id: Ie67dde198337e6edae2e94d5c7e97b9b6063833e
Diffstat (limited to 'gallerycommon/src')
-rw-r--r--gallerycommon/src/com/android/gallery3d/exif/IfdId.java5
-rw-r--r--gallerycommon/src/com/android/gallery3d/exif/Rational.java12
2 files changed, 16 insertions, 1 deletions
diff --git a/gallerycommon/src/com/android/gallery3d/exif/IfdId.java b/gallerycommon/src/com/android/gallery3d/exif/IfdId.java
index 1b9634369..c05fb02eb 100644
--- a/gallerycommon/src/com/android/gallery3d/exif/IfdId.java
+++ b/gallerycommon/src/com/android/gallery3d/exif/IfdId.java
@@ -15,12 +15,15 @@
*/
package com.android.gallery3d.exif;
+/**
+ * The constants of the IFD ID defined in EXIF spec.
+ */
public interface IfdId {
public static final int TYPE_IFD_0 = 0;
public static final int TYPE_IFD_1 = 1;
public static final int TYPE_IFD_EXIF = 2;
public static final int TYPE_IFD_INTEROPERABILITY = 3;
public static final int TYPE_IFD_GPS = 4;
- /* This is use in ExifData to allocate enough IfdData */
+ /* This is used in ExifData to allocate enough IfdData */
static final int TYPE_IFD_COUNT = 5;
}
diff --git a/gallerycommon/src/com/android/gallery3d/exif/Rational.java b/gallerycommon/src/com/android/gallery3d/exif/Rational.java
index 202c5d46d..3f8c18a88 100644
--- a/gallerycommon/src/com/android/gallery3d/exif/Rational.java
+++ b/gallerycommon/src/com/android/gallery3d/exif/Rational.java
@@ -16,6 +16,9 @@
package com.android.gallery3d.exif;
+/**
+ * The rational data type of EXIF tag.
+ */
public class Rational {
private final long mNominator;
@@ -26,10 +29,16 @@ public class Rational {
mDenominator = denominator;
}
+ /*
+ * Gets the nominator of the rational.
+ */
public long getNominator() {
return mNominator;
}
+ /*
+ * Gets the denominator of the rational
+ */
public long getDenominator() {
return mDenominator;
}
@@ -48,6 +57,9 @@ public class Rational {
return mNominator + "/" + mDenominator;
}
+ /*
+ * Gets the rational value as type double.
+ */
public double toDouble() {
return mNominator / (double) mDenominator;
}