use enough::Unstoppable;
fn main() {
let path = std::env::args().nth(1).unwrap_or_else(|| {
format!(
"{}/qoi-benchmark/screenshot_web/reddit.com.png",
std::env::var("CODEC_CORPUS_DIR")
.unwrap_or_else(|_| "/home/lilith/work/codec-corpus".to_string())
)
});
let source = std::fs::read(&path).expect("read");
let config = zenpng::PngDecodeConfig::none();
let _ = zenpng::decode(&source, &config, &Unstoppable).unwrap();
for _ in 0..3 {
let d = zenpng::decode(&source, &config, &Unstoppable).unwrap();
std::hint::black_box(&d);
}
}