pub struct CrxHeader {
pub version: u16,
pub width: u32,
pub height: u32,
pub tile_width: u32,
pub tile_height: u32,
pub bits: u8,
pub planes: u8,
pub cfa_layout: u8,
pub enc_type: u8,
pub levels: u8,
pub mdat_header_size: u32,
pub median_bits: u8,
}Expand description
The CMP1 codec header of a CR3 raw track.
Fields§
§version: u160x100 (lossless RAW and C-RAW with per-line quantisation) or 0x200 (C-RAW with quantisation maps).
width: u32Full sensor buffer size (all planes interleaved).
height: u32§tile_width: u32§tile_height: u32§bits: u8§planes: u84 (Bayer planes) or 1 (8-bit single plane).
cfa_layout: u8Position of the four planes in the 2x2 CFA cell (0 = RGGB, 1 = GRBG, 2 = GBRG, 3 = BGGR).
enc_type: u80 = planes are CFA colours, 1 = signed samples, 3 = decorrelated colour planes.
levels: u8Wavelet levels (0 = lossless).
mdat_header_size: u32Size of the per-sample header in the media data.
median_bits: u8Output precision of encoding type 3.
Implementations§
Trait Implementations§
impl Eq for CrxHeader
impl StructuralPartialEq for CrxHeader
Auto Trait Implementations§
impl Forget for CrxHeader
impl Freeze for CrxHeader
impl RefUnwindSafe for CrxHeader
impl Send for CrxHeader
impl Sync for CrxHeader
impl Unpin for CrxHeader
impl UnsafeUnpin for CrxHeader
impl UnwindSafe for CrxHeader
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