pub struct FrameInfo {
pub precision: u8,
pub height: u16,
pub width: u16,
pub components: Vec<Component>,
pub max_h_sampling: u8,
pub max_v_sampling: u8,
pub mcu_width: u16,
pub mcu_height: u16,
pub mcus_wide: u16,
pub mcus_tall: u16,
pub is_progressive: bool,
}Expand description
Frame information parsed from SOF0/SOF2 marker.
Fields§
§precision: u8Sample precision in bits (must be 8).
height: u16Image height in pixels.
width: u16Image width in pixels.
components: Vec<Component>Components in the frame.
max_h_sampling: u8Maximum horizontal sampling factor across all components.
max_v_sampling: u8Maximum vertical sampling factor across all components.
mcu_width: u16MCU width in blocks (= max_h_sampling * 8 pixels).
mcu_height: u16MCU height in blocks (= max_v_sampling * 8 pixels).
mcus_wide: u16Number of MCUs horizontally.
mcus_tall: u16Number of MCUs vertically.
is_progressive: boolWhether this is a progressive JPEG (SOF2). False for baseline (SOF0).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FrameInfo
impl RefUnwindSafe for FrameInfo
impl Send for FrameInfo
impl Sync for FrameInfo
impl Unpin for FrameInfo
impl UnsafeUnpin for FrameInfo
impl UnwindSafe for FrameInfo
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