pub struct Modular<S: Sample> { /* private fields */ }
Expand description
A Modular encoded image.
Modular image decoding is done in two steps:
- Construct a value of
Modular
by either:- reading a Modular header from the bitstream, or
- creating a subimage of existing image by calling [self.make_subimage_params_lf_group] or [self.make_subimage_params_pass_group].
- Decode pixels by calling [self.decode_image] or [self.decode_image_gmodular].
Implementations§
Source§impl<S: Sample> Modular<S>
impl<S: Sample> Modular<S>
pub fn has_palette(&self) -> bool
pub fn has_squeeze(&self) -> bool
Source§impl<S: Sample> Modular<S>
impl<S: Sample> Modular<S>
pub fn image(&self) -> Option<&ModularImageDestination<S>>
pub fn image_mut(&mut self) -> Option<&mut ModularImageDestination<S>>
pub fn into_image(self) -> Option<ModularImageDestination<S>>
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for Modular<S>
impl<S> RefUnwindSafe for Modular<S>where
S: RefUnwindSafe,
impl<S> Send for Modular<S>
impl<S> Sync for Modular<S>
impl<S> Unpin for Modular<S>where
S: Unpin,
impl<S> UnwindSafe for Modular<S>where
S: UnwindSafe,
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, Ctx> BundleDefault<Ctx> for Twhere
T: Default,
impl<T, Ctx> BundleDefault<Ctx> for Twhere
T: Default,
Source§fn default_with_context(_: Ctx) -> T
fn default_with_context(_: Ctx) -> T
Creates a default value with the given context.