pub struct JpegInfo {
pub geometry: Geometry,
pub progressive: bool,
pub components: u8,
pub precision: u8,
pub sof_offset: usize,
}Expand description
What the header says about a JPEG.
Fields§
§geometry: GeometryWidth, height, PixelFormat::Jpeg.
progressive: boolTrue for a progressive (SOF2/6/10/14) scan structure.
components: u81 (grayscale), 3 (YCbCr/RGB) or 4 (CMYK).
precision: u8Sample precision in bits; 8 for every camera sensor.
sof_offset: usizeOffset of the SOF marker’s 0xFF, useful for header rewriting.
Trait Implementations§
impl Copy for JpegInfo
impl Eq for JpegInfo
impl StructuralPartialEq for JpegInfo
Auto Trait Implementations§
impl Freeze for JpegInfo
impl RefUnwindSafe for JpegInfo
impl Send for JpegInfo
impl Sync for JpegInfo
impl Unpin for JpegInfo
impl UnsafeUnpin for JpegInfo
impl UnwindSafe for JpegInfo
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