Remove canonical mod and remove it from benches

This commit is contained in:
Ivan Smirnov 2021-12-29 22:40:41 +03:00
commit 6ed5f13487
3 changed files with 0 additions and 48 deletions

View file

@ -1,24 +0,0 @@
use crate::colorspace::ColorSpace;
use crate::encode::{encode_to_buf_impl, encode_to_vec_impl};
use crate::error::Result;
pub fn qoi_encode_to_vec(
data: impl AsRef<[u8]>, width: u32, height: u32, channels: u8,
colorspace: impl Into<ColorSpace>,
) -> Result<Vec<u8>> {
encode_to_vec_impl::<true>(data.as_ref(), width, height, channels, colorspace.into())
}
pub fn qoi_encode_to_buf(
mut out: impl AsMut<[u8]>, data: impl AsRef<[u8]>, width: u32, height: u32, channels: u8,
colorspace: impl Into<ColorSpace>,
) -> Result<usize> {
encode_to_buf_impl::<true>(
out.as_mut(),
data.as_ref(),
width,
height,
channels,
colorspace.into(),
)
}

View file

@ -18,7 +18,6 @@ mod header;
mod pixel;
mod utils;
pub mod canonical;
pub mod consts;
pub use crate::colorspace::ColorSpace;