struct Hg3Reader<'a> {
m_input: MemReaderRef<'a>,
m_info: Hg3Entry,
m_pixel_size: u32,
}
Available on crate features
cat-system
and cat-system-img
only.Fields§
§m_input: MemReaderRef<'a>
§m_info: Hg3Entry
§m_pixel_size: u32
Implementations§
Source§impl<'a> Hg3Reader<'a>
impl<'a> Hg3Reader<'a>
fn unpack_stream( &mut self, data_offset: usize, data_packed: usize, data_unpacked: usize, ctl_packed: usize, ctl_unpacked: usize, ) -> Result<Vec<u8>>
fn get_bit_count(bits: &mut LsbBitStream<MemReaderRef<'_>>) -> Result<u32>
fn convert_value(val: u8) -> u8
fn apply_delta(&self, pixels: &[u8]) -> Vec<u8> ⓘ
fn unpack(self) -> Result<ImageData>
fn unpack_img0000(&mut self) -> Result<ImageData>
fn unpack_jpeg(&mut self) -> Result<ImageData>
fn read_alpha(&mut self, start_pos: u32) -> Result<Vec<u8>>
fn read_sections(&mut self) -> Result<HashMap<String, u32>>
Auto Trait Implementations§
impl<'a> Freeze for Hg3Reader<'a>
impl<'a> RefUnwindSafe for Hg3Reader<'a>
impl<'a> Send for Hg3Reader<'a>
impl<'a> Sync for Hg3Reader<'a>
impl<'a> Unpin for Hg3Reader<'a>
impl<'a> UnwindSafe for Hg3Reader<'a>
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