aboutsummaryrefslogtreecommitdiff
path: root/src/PNGImage.h
diff options
context:
space:
mode:
authorDylan <boss@tehbox.org>2026-03-18 16:28:27 +1300
committerDylan <boss@tehbox.org>2026-03-18 16:28:27 +1300
commit93a78ac64327b53f53952b625c7ce8a11bcc8651 (patch)
treedf2bcea7256df8acdab5cb51edb0b59291b5b89c /src/PNGImage.h
parent8ca054ab8cf04e514df1570617b6a32ed83b9ea4 (diff)
downloadtehimage-93a78ac64327b53f53952b625c7ce8a11bcc8651.tar.gz
tehimage-93a78ac64327b53f53952b625c7ce8a11bcc8651.zip
feat: Added endianness option to readerHEADmaster
The file reader class can now support either endianness to read in, and will convert to the native endianness
Diffstat (limited to 'src/PNGImage.h')
-rw-r--r--src/PNGImage.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/PNGImage.h b/src/PNGImage.h
index 3c1bf1f..a5d8f3a 100644
--- a/src/PNGImage.h
+++ b/src/PNGImage.h
@@ -19,10 +19,6 @@ namespace TehImage
class PNGImage : public Image
{
- private:
- ZLibInflator zlib;
- uint8_t* idatData;
- unsigned long idatDataSize;
public:
PNGImage();
~PNGImage();
@@ -64,6 +60,10 @@ namespace TehImage
CHUNK_READER(IDAT);
CHUNK_READER(IEND);
+ ZLibInflator zlib;
+ uint8_t* idatData;
+ unsigned long idatDataSize;
+
bool end = false;
Reader *reader;