Skip to main content

Lj92

Struct Lj92 

Source
pub struct Lj92<'a, HuffLut> { /* private fields */ }

Implementations§

Source§

impl<'a> Lj92<'a, Vec<u16>>

Source

pub fn open_vec(data: &'a [u8]) -> Result<Self, Lj92Error>

Source§

impl<'a> Lj92<'a, [u16; 16384]>

Source

pub fn open(data: &'a [u8]) -> Result<Self, Lj92Error>

Source§

impl<'a, HuffLut> Lj92<'a, HuffLut>
where HuffLut: Index<usize, Output = u16> + IndexMut<usize, Output = u16>,

Source

pub fn with_custom_lut(hufflut: HuffLut) -> Self

Source

pub fn width(&self) -> u32

Source

pub fn height(&self) -> u32

Source

pub fn bitdepth(&self) -> u8

Source

pub fn components(&self) -> u8

Source

pub fn decode( &mut self, out: &'a mut [u16], skip_length: usize, linearize: Option<&[u16]>, ) -> Result<(), Lj92Error>

Trait Implementations§

Source§

impl<'a, HuffLut: Debug> Debug for Lj92<'a, HuffLut>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a, HuffLut> Freeze for Lj92<'a, HuffLut>
where HuffLut: Freeze,

§

impl<'a, HuffLut> RefUnwindSafe for Lj92<'a, HuffLut>
where HuffLut: RefUnwindSafe,

§

impl<'a, HuffLut> Send for Lj92<'a, HuffLut>
where HuffLut: Send,

§

impl<'a, HuffLut> Sync for Lj92<'a, HuffLut>
where HuffLut: Sync,

§

impl<'a, HuffLut> Unpin for Lj92<'a, HuffLut>
where HuffLut: Unpin,

§

impl<'a, HuffLut> UnsafeUnpin for Lj92<'a, HuffLut>
where HuffLut: UnsafeUnpin,

§

impl<'a, HuffLut> UnwindSafe for Lj92<'a, HuffLut>
where HuffLut: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.