OSDN Git Service

Save the offset of next IFD in the IfdData
authorEarl Ou <shunhsingou@google.com>
Tue, 28 Aug 2012 10:33:14 +0000 (18:33 +0800)
committerEarl Ou <shunhsingou@google.com>
Wed, 29 Aug 2012 08:16:55 +0000 (16:16 +0800)
Change-Id: I2c5d2ad390d970603a7a9ce2145029d871098fdb

src/com/android/gallery3d/exif/IfdData.java

index 4747c3c..4109361 100644 (file)
@@ -29,6 +29,7 @@ public class IfdData {
 
     private final int mIfdId;
     private final Map<Short, ExifTag> mExifTags = new HashMap<Short, ExifTag>();
+    private int mOffsetToNextIfd = 0;
 
     /**
      * Creates an IfdData with given IFD ID.
@@ -76,4 +77,17 @@ public class IfdData {
     public void setTag(ExifTag tag) {
         mExifTags.put(tag.getTagId(), tag);
     }
+    /**
+     * Sets the offset of next IFD.
+     */
+    void setOffsetToNextIfd(int offset) {
+        mOffsetToNextIfd = offset;
+    }
+
+    /**
+     * Gets the offset of next IFD.
+     */
+    int getOffsetToNextIfd() {
+        return mOffsetToNextIfd;
+    }
 }
\ No newline at end of file