pub struct DctStreamingDecoder { /* private fields */ }Expand description
Streaming decoder for DCTDecode (JPEG).
Since JPEG requires the full input to decode, this accumulates bytes
and performs the actual decode in finish().
Implementations§
Trait Implementations§
Source§impl Default for DctStreamingDecoder
impl Default for DctStreamingDecoder
Source§impl StreamingDecoder for DctStreamingDecoder
impl StreamingDecoder for DctStreamingDecoder
Source§fn feed(&mut self, input: &[u8]) -> Result<(), DecodeError>
fn feed(&mut self, input: &[u8]) -> Result<(), DecodeError>
Feed a chunk of compressed input data.
Source§fn finish(&mut self) -> Result<(), DecodeError>
fn finish(&mut self) -> Result<(), DecodeError>
Signal that all input has been provided and perform final flush.
Source§fn output_available(&self) -> usize
fn output_available(&self) -> usize
Returns the number of decompressed bytes available to read.
Source§fn read_output(&mut self, buf: &mut [u8]) -> usize
fn read_output(&mut self, buf: &mut [u8]) -> usize
Read decompressed output into the provided buffer.
Returns the number of bytes actually written to
buf.Auto Trait Implementations§
impl Freeze for DctStreamingDecoder
impl RefUnwindSafe for DctStreamingDecoder
impl Send for DctStreamingDecoder
impl Sync for DctStreamingDecoder
impl Unpin for DctStreamingDecoder
impl UnsafeUnpin for DctStreamingDecoder
impl UnwindSafe for DctStreamingDecoder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more