mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
Box miniz_oxide InflateState
This commit is contained in:
parent
27ac3d9dc1
commit
9b7c63c719
1 changed files with 2 additions and 3 deletions
|
|
@ -73,7 +73,7 @@ pub struct DecodePng<R: Read> {
|
|||
idat_remaining: u32,
|
||||
idat_buffer: Vec<u8>,
|
||||
// state of the miniz oxide inflation
|
||||
inflate_state: InflateState,
|
||||
inflate_state: Box<InflateState>,
|
||||
// fields to buffer inflated bytes waiting to be unfiltered
|
||||
inflated: [u8; INFLATED_BUFFER_LENGTH],
|
||||
inflated_length: usize,
|
||||
|
|
@ -110,8 +110,7 @@ impl<R: Read> DecodePng<R> {
|
|||
prior_px: vec![0u8, 0],
|
||||
idat_remaining: 0,
|
||||
idat_buffer: Vec::with_capacity(IDAT_BUFFER_LENGTH),
|
||||
inflate_state: InflateState::new(DataFormat::Zlib),
|
||||
//inflate_state: InflateState::new_boxed(DataFormat::Zlib),
|
||||
inflate_state: InflateState::new_boxed(DataFormat::Zlib),
|
||||
inflated: [0u8; INFLATED_BUFFER_LENGTH],
|
||||
inflated_length: 0,
|
||||
inflated_index: INFLATED_BUFFER_LENGTH,
|
||||
|
|
|
|||
Loading…
Reference in a new issue