aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBossCode45 <boss@tehbox.org>2025-06-27 14:54:46 +1200
committerBossCode45 <boss@tehbox.org>2025-07-24 12:48:21 +1200
commitf953c730af2b90db99f709258c5d5e50fdcaadf7 (patch)
treeadbc79f0d48a74a42fd0eb22d85f03696a99dc42 /test
parent06a2928d96b3d9aeaffb19013ba71a5cb6d96381 (diff)
downloadtehimage-f953c730af2b90db99f709258c5d5e50fdcaadf7.tar.gz
tehimage-f953c730af2b90db99f709258c5d5e50fdcaadf7.zip
Initial commit
Bringing a lot of stuff over from my maze-reader project in an attempt to split the image reading code off into a library.
Diffstat (limited to 'test')
-rw-r--r--test/main.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/main.cpp b/test/main.cpp
new file mode 100644
index 0000000..f60017e
--- /dev/null
+++ b/test/main.cpp
@@ -0,0 +1,24 @@
+#include <reader.h>
+#include <debug.h>
+#include <PNGImage.h>
+#include <zlib.h>
+#include <cstdint>
+#include <cstring>
+#include <iostream>
+
+using std::cout, std::endl;
+
+int main(int argc, char* argv[])
+{
+ if(argc < 2)
+ {
+ cout << "usage: " << argv[0] << " <image>" << endl;
+ return 1;
+ }
+
+ std::string filename = argv[1];
+
+ PNGImage image(filename);
+
+ while(image.readNextChunk()){}
+}