Update tests and benches to the new encoder API

This commit is contained in:
Ivan Smirnov 2022-01-03 00:47:23 +03:00
commit 9d036bc64e
2 changed files with 2 additions and 2 deletions

View file

@ -123,7 +123,7 @@ impl Codec for CodecQoiFast {
}
fn encode(img: &Image) -> Result<Vec<u8>> {
Ok(qoi_fast::qoi_encode_to_vec(&img.data, img.width, img.height, img.channels, 0)?)
Ok(qoi_fast::qoi_encode_to_vec(&img.data, img.width, img.height)?)
}
fn decode(data: &[u8], _img: &Image) -> Result<Vec<u8>> {