aboutsummaryrefslogtreecommitdiff
path: root/src/tiff_parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tiff_parser.h')
-rw-r--r--src/tiff_parser.h6
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: