pub struct ImageSequenceDescriptor { /* private fields */ }Expand description
A compact description of one regular or sparse image sequence.
Implementations§
Source§impl ImageSequenceDescriptor
impl ImageSequenceDescriptor
Sourcepub fn new(
resource_id: ResourceId,
pattern: ImageSequencePattern,
frames: FrameRange,
rate: RationalRate,
known_missing_frames: Vec<i64>,
) -> Result<Self>
pub fn new( resource_id: ResourceId, pattern: ImageSequencePattern, frames: FrameRange, rate: RationalRate, known_missing_frames: Vec<i64>, ) -> Result<Self>
Creates a sequence descriptor and canonicalizes its sparse exceptions.
§Errors
Returns ErrorKind::InvalidArgument when there are too many missing
frames or an exception does not belong to the regular frame domain.
Sourcepub const fn resource_id(&self) -> ResourceId
pub const fn resource_id(&self) -> ResourceId
Returns the compact patterned resource identity.
Sourcepub const fn pattern(&self) -> &ImageSequencePattern
pub const fn pattern(&self) -> &ImageSequencePattern
Returns the sequence filename pattern.
Sourcepub const fn frames(&self) -> FrameRange
pub const fn frames(&self) -> FrameRange
Returns the regular frame domain before sparse exceptions.
Sourcepub const fn rate(&self) -> RationalRate
pub const fn rate(&self) -> RationalRate
Returns the exact playback or capture rate.
Sourcepub fn known_missing_frames(&self) -> &[i64]
pub fn known_missing_frames(&self) -> &[i64]
Returns sorted, unique frames known to be absent.
Sourcepub fn is_known_missing(&self, frame: i64) -> bool
pub fn is_known_missing(&self, frame: i64) -> bool
Returns whether a frame is recorded as missing.
Trait Implementations§
Source§impl Clone for ImageSequenceDescriptor
impl Clone for ImageSequenceDescriptor
Source§fn clone(&self) -> ImageSequenceDescriptor
fn clone(&self) -> ImageSequenceDescriptor
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 moreSource§impl Debug for ImageSequenceDescriptor
impl Debug for ImageSequenceDescriptor
impl Eq for ImageSequenceDescriptor
Source§impl PartialEq for ImageSequenceDescriptor
impl PartialEq for ImageSequenceDescriptor
Source§fn eq(&self, other: &ImageSequenceDescriptor) -> bool
fn eq(&self, other: &ImageSequenceDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ImageSequenceDescriptor
Auto Trait Implementations§
impl Freeze for ImageSequenceDescriptor
impl RefUnwindSafe for ImageSequenceDescriptor
impl Send for ImageSequenceDescriptor
impl Sync for ImageSequenceDescriptor
impl Unpin for ImageSequenceDescriptor
impl UnsafeUnpin for ImageSequenceDescriptor
impl UnwindSafe for ImageSequenceDescriptor
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