diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/main.cpp | 24 |
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()){} +} |
