pub struct CompMedia<'a> {
pub fp: &'a dyn Fingerprinter,
pub dims: &'a dyn Fn(&Path) -> Result<(u32, u32)>,
pub profile: Option<ProbeProfile<'a>>,
pub rate: Option<ProbeRate<'a>>,
}Expand description
What a comp’s lowering reads of its media: probed sizes (dims), camera profiles for
camera: auto (profile; None: every source is display-referred), frame rates for time
remaps (rate; None: a remap is an error) and fingerprints.
Fields§
§fp: &'a dyn Fingerprinter§dims: &'a dyn Fn(&Path) -> Result<(u32, u32)>§profile: Option<ProbeProfile<'a>>§rate: Option<ProbeRate<'a>>Trait Implementations§
Source§impl Media for CompMedia<'_>
impl Media for CompMedia<'_>
Source§fn dims(&self, path: &Path) -> Result<(u32, u32)>
fn dims(&self, path: &Path) -> Result<(u32, u32)>
A video’s or still’s display size, px (rotation and HEIF grids applied).
Source§fn identity(&self, path: &Path) -> Value
fn identity(&self, path: &Path) -> Value
The file’s identity in keys (a fingerprint: path, size, modification time).
Source§fn ffmpeg_build(&self) -> String
fn ffmpeg_build(&self) -> String
The ffmpeg build that runs filter nodes (in their keys).
Source§fn content_hash(&self, path: &Path) -> Value
fn content_hash(&self, path: &Path) -> Value
A small file’s contents in keys (a filter node’s LUTs, fonts, text files): by default its
identity.Source§fn profile(&self, path: &Path) -> Result<Profile>
fn profile(&self, path: &Path) -> Result<Profile>
A video’s or still’s camera profile for
camera: auto (Profile::detect_file).Auto Trait Implementations§
impl<'a> !RefUnwindSafe for CompMedia<'a>
impl<'a> !Send for CompMedia<'a>
impl<'a> !Sync for CompMedia<'a>
impl<'a> !UnwindSafe for CompMedia<'a>
impl<'a> Forget for CompMedia<'a>
impl<'a> Freeze for CompMedia<'a>
impl<'a> Unpin for CompMedia<'a>
impl<'a> UnsafeUnpin for CompMedia<'a>
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