pub struct McrawFileInfo {Show 24 fields
pub path: String,
pub size: u64,
pub format_version: u32,
pub frame_count: u32,
pub width: u16,
pub height: u16,
pub fps: f64,
pub has_audio: bool,
pub audio_sample_rate: u32,
pub audio_channels: u16,
pub bit_depth: u16,
pub bayer_pattern: BayerPattern,
pub camera_metadata: CameraMetadata,
pub frame_offsets: Vec<u64>,
pub audio_offset: Option<u64>,
pub audio_length: Option<u64>,
pub sensor_width: u16,
pub sensor_height: u16,
pub active_offset_x: u16,
pub active_offset_y: u16,
pub active_width: u16,
pub active_height: u16,
pub white_level: f64,
pub black_level: f64,
}Expand description
Complete parsed information from an MCRAW file header
Fields§
§path: String§size: u64§format_version: u32§frame_count: u32§width: u16§height: u16§fps: f64§has_audio: bool§audio_sample_rate: u32§audio_channels: u16§bit_depth: u16§bayer_pattern: BayerPattern§camera_metadata: CameraMetadata§frame_offsets: Vec<u64>§audio_offset: Option<u64>§audio_length: Option<u64>§sensor_width: u16§sensor_height: u16§active_offset_x: u16§active_offset_y: u16§active_width: u16§active_height: u16§white_level: f64§black_level: f64Implementations§
Source§impl McrawFileInfo
impl McrawFileInfo
pub fn from_path<P: AsRef<Path>>(path: P) -> Result<Self>
pub fn enhance_with_decoder(&mut self)
pub fn format_name(&self) -> &'static str
pub fn duration_seconds(&self) -> f64
pub fn resolution_label(&self) -> &'static str
Trait Implementations§
Source§impl Clone for McrawFileInfo
impl Clone for McrawFileInfo
Source§fn clone(&self) -> McrawFileInfo
fn clone(&self) -> McrawFileInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 McrawFileInfo
impl RefUnwindSafe for McrawFileInfo
impl Send for McrawFileInfo
impl Sync for McrawFileInfo
impl Unpin for McrawFileInfo
impl UnsafeUnpin for McrawFileInfo
impl UnwindSafe for McrawFileInfo
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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