*/
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;
}
package com.android.gallery3d.exif;
+/**
+ * The rational data type of EXIF tag.
+ */
public class Rational {
private final long mNominator;
mDenominator = denominator;
}
+ /*
+ * Gets the nominator of the rational.
+ */
public long getNominator() {
return mNominator;
}
+ /*
+ * Gets the denominator of the rational
+ */
public long getDenominator() {
return mDenominator;
}
return mNominator + "/" + mDenominator;
}
+ /*
+ * Gets the rational value as type double.
+ */
public double toDouble() {
return mNominator / (double) mDenominator;
}