From 5cd3d8f8e3c6aafb4222e1d45901a2a842ed2edc Mon Sep 17 00:00:00 2001 From: Matthew Wilber Date: Mon, 21 Apr 2003 03:40:23 +0000 Subject: [PATCH] change TiffDetails to a class so that cleanup would be easier git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3088 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../translators/tifftranslator/TIFFTranslator.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/add-ons/translators/tifftranslator/TIFFTranslator.h b/src/add-ons/translators/tifftranslator/TIFFTranslator.h index c44188b5c6..bed262be0c 100755 --- a/src/add-ons/translators/tifftranslator/TIFFTranslator.h +++ b/src/add-ons/translators/tifftranslator/TIFFTranslator.h @@ -57,13 +57,21 @@ enum TIFF_IMAGE_TYPE { TIFF_BILEVEL = 1, + TIFF_PALETTE, TIFF_RGB, TIFF_CMYK }; -// structure for storing only the TIFF fields +// class for storing only the TIFF fields // that are of interest to the TIFFTranslator -struct TiffDetails { +// +// The class is very minimal so that it is +// convenient to use, but cleans up after itself +class TiffDetails { +public: + TiffDetails(); + ~TiffDetails(); + uint32 width; uint32 height; uint32 compression;