pub struct LjpegHeader {
pub bits: u32,
pub width: u32,
pub height: u32,
pub components: Vec<Component>,
pub clrs: u32,
pub sraw: u32,
pub predictor: u32,
pub point_transform: u32,
pub restart_interval: u32,
pub scan_offset: usize,
/* private fields */
}Expand description
A parsed lossless JPEG stream (headers only; decoding is on demand).
Fields§
§bits: u32Sample precision in bits (after point transform).
width: u32Frame width in MCUs (samples per line per component).
height: u32§components: Vec<Component>§clrs: u32Values per MCU column: ncomp + extra luma samples for sRAW.
sraw: u32Number of extra luma samples per MCU (0 = normal frame).
predictor: u32§point_transform: u32§restart_interval: u32§scan_offset: usizeOffset of entropy-coded data in the input.
Implementations§
Source§impl LjpegHeader
impl LjpegHeader
Sourcepub fn parse(data: &[u8], opts: LjpegOptions) -> Result<Self>
pub fn parse(data: &[u8], opts: LjpegOptions) -> Result<Self>
Parse markers up to and including the first SOS.
Trait Implementations§
Source§impl Clone for LjpegHeader
impl Clone for LjpegHeader
Auto Trait Implementations§
impl Forget for LjpegHeader
impl Freeze for LjpegHeader
impl RefUnwindSafe for LjpegHeader
impl Send for LjpegHeader
impl Sync for LjpegHeader
impl Unpin for LjpegHeader
impl UnsafeUnpin for LjpegHeader
impl UnwindSafe for LjpegHeader
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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