diff options
author | Ruben Brunk <rubenbrunk@google.com> | 2014-05-28 18:42:37 -0700 |
---|---|---|
committer | Ruben Brunk <rubenbrunk@google.com> | 2014-07-10 15:37:26 -0700 |
commit | 4510de26e5361f3a9f07057ec6f26483c888c1fa (patch) | |
tree | 5a474839318779c1e6eff96a4f98e3e1f74ef85a /media/img_utils/src/TiffEntryImpl.cpp | |
parent | 5c68f959eaa2e02fed5643c78e281fff42bcc0a2 (diff) | |
download | frameworks_av-4510de26e5361f3a9f07057ec6f26483c888c1fa.zip frameworks_av-4510de26e5361f3a9f07057ec6f26483c888c1fa.tar.gz frameworks_av-4510de26e5361f3a9f07057ec6f26483c888c1fa.tar.bz2 |
DNG: Update TiffWriter to handle thumbnails and SubIfds.
- Fix SubIfd handling.
- Add StripSources, convenience functions for writing image strips.
- Update Input classes to use with JNI.
- Add skip method.
- Add tag definitions for GPS tags.
- Add name string to tag definitions.
Bug: 15112503
Change-Id: I9535b21261027f6c06a041c1621de8f865a0ad32
Diffstat (limited to 'media/img_utils/src/TiffEntryImpl.cpp')
-rw-r--r-- | media/img_utils/src/TiffEntryImpl.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/media/img_utils/src/TiffEntryImpl.cpp b/media/img_utils/src/TiffEntryImpl.cpp index 6efa458..257c266 100644 --- a/media/img_utils/src/TiffEntryImpl.cpp +++ b/media/img_utils/src/TiffEntryImpl.cpp @@ -15,30 +15,11 @@ */ #include <img_utils/TiffEntryImpl.h> -#include <img_utils/TiffIfd.h> #include <utils/Vector.h> namespace android { namespace img_utils { -template<> -size_t TiffEntryImpl<TiffIfd>::getSize() const { - uint32_t total = 0; - for (uint32_t i = 0; i < mCount; ++i) { - total += mData[i].getSize(); - } - return total; -} - -template<> -status_t TiffEntryImpl<TiffIfd>::writeData(uint32_t offset, EndianOutput* out) const { - status_t ret = OK; - for (uint32_t i = 0; i < mCount; ++i) { - BAIL_ON_FAIL(mData[i].writeData(offset, out), ret); - } - return ret; -} - } /*namespace img_utils*/ } /*namespace android*/ |