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.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/tiff_parser.h b/src/tiff_parser.h
index e809274..e19dea2 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:
@@ -178,7 +184,7 @@ class TiffParser {
// Runs over the Tiff IFD, Exif IFD and subIFDs to get the preview image data.
// Returns false if something with the Tiff tags is wrong.
bool GetPreviewImageData(const TiffContent& tiff_content,
- PreviewImageData* image_metadata);
+ PreviewImageData* preview_image_data);
// Returns false if called more that once or something with the Tiff data is
// wrong.