aboutsummaryrefslogtreecommitdiff
path: root/test/main.cpp
blob: f60017e32b3109fb6a98afa01d99ea133223471e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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()){}
}