pub struct RestartIndex {
pub scan_data_offset: usize,
pub interval_mcus: u32,
pub segments: Vec<RestartSegment>,
}Expand description
Restart-marker index for a single-scan JPEG stream.
The segment vector is derived from untrusted MCU geometry and can approach
the shared host-allocation cap. Share this move-only owner behind Arc
when multiple consumers need the same index.
Fields§
§scan_data_offset: usizeAbsolute byte offset of the first entropy byte after the SOS header.
interval_mcus: u32Restart interval from DRI, in MCUs.
segments: Vec<RestartSegment>Restart-addressable scan segments in MCU order.
Trait Implementations§
Source§impl Debug for RestartIndex
impl Debug for RestartIndex
impl Eq for RestartIndex
Source§impl PartialEq for RestartIndex
impl PartialEq for RestartIndex
impl StructuralPartialEq for RestartIndex
Auto Trait Implementations§
impl Freeze for RestartIndex
impl RefUnwindSafe for RestartIndex
impl Send for RestartIndex
impl Sync for RestartIndex
impl Unpin for RestartIndex
impl UnsafeUnpin for RestartIndex
impl UnwindSafe for RestartIndex
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