pub struct DecoderOptions {
pub use_threads: bool,
pub color_mode: ColorMode,
}
Expand description
An options struct for Decoder
For usage, see Decoder::new_with_options
Fields§
§use_threads: bool
If true, use multi-threaded decoding. Enabled by default
color_mode: ColorMode
Output colorspace. ColorMode::Rgba
by default. Affects Frame
output
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DecoderOptions
impl RefUnwindSafe for DecoderOptions
impl Send for DecoderOptions
impl Sync for DecoderOptions
impl Unpin for DecoderOptions
impl UnwindSafe for DecoderOptions
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