pub fn deflate(data: &[u8], zc: u8, zs: u8, zw: u8, max_size: &AtomicMin) -> PngResult<Vec<u8>> {
    #[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))]
    {
        if cfzlib::is_supported() {
            return cfzlib::cfzlib_deflate(data, zc, zs, zw, max_size);
        }
    }

    miniz_stream::compress_to_vec_oxipng(data, zc, zw.into(), zs.into(), max_size)
}
/// Compress a data stream using the DEFLATE algorithm
Compress a data stream using the DEFLATE algorithm
Compress a data stream using the DEFLATE algorithm
pub fn deflate(data: &[u8], zc: u8, zs: u8, zw: u8, max_size: &AtomicMin) -> PngResult<Vec<u8>> {
    #[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))]
    {
        if cfzlib::is_supported() {
            return cfzlib::cfzlib_deflate(data, zc, zs, zw, max_size);
        }
    }
    miniz_stream::compress_to_vec_oxipng(data, zc, zw.into(), zs.into(), max_size)
}
pub fn deflate ( data : & [ u8 ] , zc : u8 , zs : u8 , zw : u8 , max_size : & AtomicMin ) -> PngResult < Vec < u8 > > { # [ cfg ( any ( target_arch " " target_arch " " ) ) ] { if cfzlib :: is_supported ( ) { return cfzlib :: cfzlib_deflate ( data , zc , zs , zw , max_size ) ; } } miniz_stream :: compress_to_vec_oxipng ( data , zc , zw . into ( ) , zs . into ( ) , max_size ) }
Compress a data stream using the DEFLATE algorithm
Compress a data stream using the DEFLATE algorithm
data
&[u8]
zc
u8
zs
u8
zw
u8
max_size
&AtomicMin
data
&[u8]
zc
u8
zs
u8
zw
u8
max_size
&AtomicMin