Merge branch 'reduce_alloc' of https://github.com/SethDusek/oxipng into reduce_alloc
This commit is contained in:
commit
079fb33f0f
1 changed files with 0 additions and 1 deletions
|
|
@ -307,7 +307,6 @@ impl PngImage {
|
|||
/// 4: Paeth
|
||||
/// 5: All (heuristically pick the best filter for each line)
|
||||
pub fn filter_image(&self, filter: u8) -> Vec<u8> {
|
||||
//dbg!(self.data.len());
|
||||
let mut filtered = Vec::with_capacity(self.data.len());
|
||||
let bpp = ((self.ihdr.bit_depth.as_u8() * self.channels_per_pixel() + 7) / 8) as usize;
|
||||
let mut last_line: &[u8] = &[];
|
||||
|
|
|
|||
Loading…
Reference in a new issue