#include "PngReader.h" #include "BitStream.h" #include "Image.h" #include int main() { //const auto path = "/home/jmsgrogan/Downloads/test.png"; //const auto path = "/home/jmsgrogan/Downloads/index.png"; const auto path = "/home/jmsgrogan/code/MediaTool-build/bin/test.png"; File file(path); std::cout << file.dumpBinary(); PngReader reader; reader.setPath(path); auto image = reader.read(); for(unsigned idx=0; idxgetWidth()*image->getBytesPerRow(); idx++) { std::cout << "Image val: " << idx << " | " << static_cast(image->getDataRef()[idx]) << std::endl; } return 0; }