Commit graph

10 commits

Author SHA1 Message Date
Ivan Smirnov
3ec3d34987 Add Header::new() and with_colorspace() 2021-12-02 15:57:57 +00:00
Ivan Smirnov
02734e4eca Replace Header::SIZE -> encoded_size() 2021-12-02 15:57:03 +00:00
Ivan Smirnov
0825c0aa3a Fix a few clippy lints 2021-12-02 15:55:56 +00:00
Ivan Smirnov
4067d83829 Mark a few methods as inline in header mod 2021-12-01 17:07:32 +00:00
Ivan Smirnov
7446a0f171 Add Header::validate(), don't check in qoi_dec_hdr 2021-12-01 17:07:21 +00:00
Ivan Smirnov
8f0a78a8c9 Add Header::n_pixels() 2021-12-01 16:04:04 +00:00
Ivan Smirnov
62a659eb03 Change magic type to u32 (like in reference impl) 2021-11-29 22:38:09 +00:00
Ivan Smirnov
236f55ed3c Change Header::default() impl so it's a valid one 2021-11-29 22:30:53 +00:00
Ivan Smirnov
7d0b0a5b62 Change colorspace in Header to ColorSpace type 2021-11-29 22:30:29 +00:00
Ivan Smirnov
f8ec8011fc Initial working version (but lots of temp stuff) 2021-11-28 16:20:24 +00:00