diff options
author | Earl Ou <shunhsingou@google.com> | 2012-08-28 18:33:14 +0800 |
---|---|---|
committer | Earl Ou <shunhsingou@google.com> | 2012-08-29 16:16:55 +0800 |
commit | 650a9df4376e7c4f0b64d439b5d38dd81b7fcdcd (patch) | |
tree | d99bcf9e6adf085158b0530584adf5a287d594d6 | |
parent | 056f37f9ec862c4050040da132523b59d85c973b (diff) | |
download | android_packages_apps_Snap-650a9df4376e7c4f0b64d439b5d38dd81b7fcdcd.tar.gz android_packages_apps_Snap-650a9df4376e7c4f0b64d439b5d38dd81b7fcdcd.tar.bz2 android_packages_apps_Snap-650a9df4376e7c4f0b64d439b5d38dd81b7fcdcd.zip |
Save the offset of next IFD in the IfdData
Change-Id: I2c5d2ad390d970603a7a9ce2145029d871098fdb
-rw-r--r-- | src/com/android/gallery3d/exif/IfdData.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/exif/IfdData.java b/src/com/android/gallery3d/exif/IfdData.java index 4747c3cce..41093617f 100644 --- a/src/com/android/gallery3d/exif/IfdData.java +++ b/src/com/android/gallery3d/exif/IfdData.java @@ -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 |