diff options
author | Nick Chusid <nchusid@google.com> | 2021-06-23 18:48:59 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-06-23 18:48:59 +0000 |
commit | e53a2cde20ca4b337692654fc6a5ca38eceb174b (patch) | |
tree | a01ef945ef570b8e5691cc0a12e28de37d42ada2 /src/tiff_parser.h | |
parent | 3e3815c27436bb89fef67d7ebbe70f2c4cb3b72d (diff) | |
parent | 3b60c65baacd2507fd3b097cf5f1398e821ae4cb (diff) | |
download | piex-e53a2cde20ca4b337692654fc6a5ca38eceb174b.tar.gz |
Add support for CR3s with embedded heif thumbnails am: 5c5b671ef7 am: 81b491ff16 am: 8060966efd am: 3b60c65baa
Original change: https://android-review.googlesource.com/c/platform/external/piex/+/1726814
Change-Id: Ibf04ad4e11ab521ea8dc8302d084b8544e612280
Diffstat (limited to 'src/tiff_parser.h')
-rw-r--r-- | src/tiff_parser.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tiff_parser.h b/src/tiff_parser.h index e809274..f89c319 100644 --- a/src/tiff_parser.h +++ b/src/tiff_parser.h @@ -167,6 +167,12 @@ bool GetFullDimension32(const tiff_directory::TiffDirectory& tiff_directory, bool GetFullCropDimension(const tiff_directory::TiffDirectory& tiff_directory, std::uint32_t* width, std::uint32_t* height); +// Reads 1 or more rational values for a tag and stores results into data. +// Returns false if an error occurred. +bool GetRational(const tiff_directory::TiffDirectory::Tag& tag, + const tiff_directory::TiffDirectory& directory, + const int data_size, PreviewImageData::Rational* data); + // Enables us to parse through data that complies to the Tiff/EP specification. class TiffParser { public: |