pub struct DecoderContext { /* private fields */ }Expand description
Shared decode context for WSI tile batches.
Reuse one context across many related JPEG tiles to amortize Huffman-table construction and quant-table cloning when the stream family repeats the same DHT/DQT definitions across tiles.
Implementations§
Trait Implementations§
Source§impl CodecContext for DecoderContext
impl CodecContext for DecoderContext
Source§fn cache_stats(&self) -> CacheStats
fn cache_stats(&self) -> CacheStats
Return current cache counters, when the codec tracks them.
Source§impl Debug for DecoderContext
impl Debug for DecoderContext
Source§impl Default for DecoderContext
impl Default for DecoderContext
Source§fn default() -> DecoderContext
fn default() -> DecoderContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DecoderContext
impl RefUnwindSafe for DecoderContext
impl Send for DecoderContext
impl Sync for DecoderContext
impl Unpin for DecoderContext
impl UnsafeUnpin for DecoderContext
impl UnwindSafe for DecoderContext
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more