pub struct ComponentInfo {
pub id: u8,
pub h_samp: u8,
pub v_samp: u8,
pub block_count: usize,
}Expand description
Metadata for a single image component, as read from the SOF marker.
Fields§
§id: u8Component identifier (1=Y, 2=Cb, 3=Cr in YCbCr; 1=Y in grayscale).
h_samp: u8Horizontal sampling factor.
v_samp: u8Vertical sampling factor.
block_count: usizeNumber of 8×8 DCT blocks this component contributes to the image.
Trait Implementations§
Source§impl Clone for ComponentInfo
impl Clone for ComponentInfo
Source§fn clone(&self) -> ComponentInfo
fn clone(&self) -> ComponentInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ComponentInfo
impl RefUnwindSafe for ComponentInfo
impl Send for ComponentInfo
impl Sync for ComponentInfo
impl Unpin for ComponentInfo
impl UnsafeUnpin for ComponentInfo
impl UnwindSafe for ComponentInfo
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