pub(crate) struct LosslessFrame {
pub(crate) width: u16,
pub(crate) height: u16,
pub(crate) buf: Vec<u32>,
}
Fields§
§width: u16
§height: u16
§buf: Vec<u32>
Implementations§
source§impl LosslessFrame
impl LosslessFrame
sourcepub(crate) fn get_buf_size(&self) -> usize
pub(crate) fn get_buf_size(&self) -> usize
Get buffer size from the image
sourcepub(crate) fn fill_green(&self, buf: &mut [u8])
pub(crate) fn fill_green(&self, buf: &mut [u8])
Fills a buffer with just the green values from the lossless decoding Used in extended alpha decoding
Trait Implementations§
source§impl Clone for LosslessFrame
impl Clone for LosslessFrame
source§fn clone(&self) -> LosslessFrame
fn clone(&self) -> LosslessFrame
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LosslessFrame
impl Debug for LosslessFrame
source§impl Default for LosslessFrame
impl Default for LosslessFrame
source§fn default() -> LosslessFrame
fn default() -> LosslessFrame
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LosslessFrame
impl RefUnwindSafe for LosslessFrame
impl Send for LosslessFrame
impl Sync for LosslessFrame
impl Unpin for LosslessFrame
impl UnwindSafe for LosslessFrame
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 moresource§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.