From 93a78ac64327b53f53952b625c7ce8a11bcc8651 Mon Sep 17 00:00:00 2001 From: Dylan Date: Wed, 18 Mar 2026 16:28:27 +1300 Subject: feat: Added endianness option to reader The file reader class can now support either endianness to read in, and will convert to the native endianness --- src/PNGImage.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/PNGImage.h') 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; -- cgit v1.2.3