diff options
author | Nick Chusid <nchusid@google.com> | 2021-06-03 15:33:24 -0400 |
---|---|---|
committer | Nick Chusid <nchusid@google.com> | 2021-06-03 15:35:09 -0400 |
commit | 5c5b671ef7203a092e4b4491014028d73cce0ff9 (patch) | |
tree | a01ef945ef570b8e5691cc0a12e28de37d42ada2 /src/tiff_parser.h | |
parent | 3ba9f2e7394913b016c120d336dcbc12d5cf5587 (diff) | |
download | piex-5c5b671ef7203a092e4b4491014028d73cce0ff9.tar.gz |
Add support for CR3s with embedded heif thumbnails
Change-Id: I2cb6b1e46ed91961744cc5b795cc7144c6cacb54
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: |