Skip to main content

FrameSequence

Struct FrameSequence 

Source
pub struct FrameSequence<FrameId, MarkerId, GapId, Pixels> { /* private fields */ }
Expand description

An immutable, validated sequence in one coordinate space and clock.

Implementations§

Source§

impl<F: Eq, M: Eq, G: Eq, P: AsRef<[u8]>> FrameSequence<F, M, G, P>

Source

pub fn new( frames: Vec<Frame<F, P>>, markers: Vec<Marker<M>>, gaps: Vec<DeclaredGap<G>>, region: Option<FrameRegion>, mask: Option<BinaryMask>, ) -> Result<Self>
where F: Clone,

Source

pub fn with_source_provenance( self, source_frame_ids: Vec<F>, source_indices: Vec<usize>, source_range: TimeRange, ) -> Result<Self>

Attach the full retained source identity to a bounded decoded subset. Rendering and measurement continue to use the decoded frames, while manifests retain the complete source-frame and time-range provenance.

Source

pub fn frames(&self) -> &[Frame<F, P>]

Source

pub fn markers(&self) -> &[Marker<M>]

Source

pub fn gaps(&self) -> &[DeclaredGap<G>]

Source

pub const fn region(&self) -> Option<FrameRegion>

Source

pub fn mask(&self) -> Option<&BinaryMask>

Source

pub fn source_frame_ids(&self) -> &[F]

Source

pub fn source_indices(&self) -> Option<&[usize]>

Source

pub fn source_frame_count(&self) -> usize

Source

pub fn range(&self) -> TimeRange

Source

pub fn dimensions(&self) -> PixelDimensions

Source

pub fn pixel_format(&self) -> PixelFormat

Source

pub fn frame_by_id(&self, id: &F) -> Option<&Frame<F, P>>

Source§

impl<F: Clone + Eq, M: Clone + Eq, G: Clone + Eq, P: AsRef<[u8]>> FrameSequence<F, M, G, P>

Source

pub fn to_owned(&self) -> OwnedFrameSequence<F, M, G>

Trait Implementations§

Source§

impl<FrameId: Clone, MarkerId: Clone, GapId: Clone, Pixels: Clone> Clone for FrameSequence<FrameId, MarkerId, GapId, Pixels>

Source§

fn clone(&self) -> FrameSequence<FrameId, MarkerId, GapId, Pixels>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<FrameId: Debug, MarkerId: Debug, GapId: Debug, Pixels: Debug> Debug for FrameSequence<FrameId, MarkerId, GapId, Pixels>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de, F, M, G, P> Deserialize<'de> for FrameSequence<F, M, G, P>
where F: Deserialize<'de> + Clone + Eq, M: Deserialize<'de> + Eq, G: Deserialize<'de> + Eq, P: Deserialize<'de> + AsRef<[u8]>,

Source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<FrameId: Eq, MarkerId: Eq, GapId: Eq, Pixels: Eq> Eq for FrameSequence<FrameId, MarkerId, GapId, Pixels>

Source§

impl<FrameId: PartialEq, MarkerId: PartialEq, GapId: PartialEq, Pixels: PartialEq> PartialEq for FrameSequence<FrameId, MarkerId, GapId, Pixels>

Source§

fn eq(&self, other: &FrameSequence<FrameId, MarkerId, GapId, Pixels>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl<FrameId, MarkerId, GapId, Pixels> Serialize for FrameSequence<FrameId, MarkerId, GapId, Pixels>
where FrameId: Serialize, MarkerId: Serialize, GapId: Serialize, Pixels: Serialize,

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<FrameId: PartialEq, MarkerId: PartialEq, GapId: PartialEq, Pixels: PartialEq> StructuralPartialEq for FrameSequence<FrameId, MarkerId, GapId, Pixels>

Auto Trait Implementations§

§

impl<FrameId, MarkerId, GapId, Pixels> Freeze for FrameSequence<FrameId, MarkerId, GapId, Pixels>

§

impl<FrameId, MarkerId, GapId, Pixels> RefUnwindSafe for FrameSequence<FrameId, MarkerId, GapId, Pixels>
where FrameId: RefUnwindSafe, Pixels: RefUnwindSafe, MarkerId: RefUnwindSafe, GapId: RefUnwindSafe,

§

impl<FrameId, MarkerId, GapId, Pixels> Send for FrameSequence<FrameId, MarkerId, GapId, Pixels>
where FrameId: Send, Pixels: Send, MarkerId: Send, GapId: Send,

§

impl<FrameId, MarkerId, GapId, Pixels> Sync for FrameSequence<FrameId, MarkerId, GapId, Pixels>
where FrameId: Sync, Pixels: Sync, MarkerId: Sync, GapId: Sync,

§

impl<FrameId, MarkerId, GapId, Pixels> Unpin for FrameSequence<FrameId, MarkerId, GapId, Pixels>

§

impl<FrameId, MarkerId, GapId, Pixels> UnsafeUnpin for FrameSequence<FrameId, MarkerId, GapId, Pixels>

§

impl<FrameId, MarkerId, GapId, Pixels> UnwindSafe for FrameSequence<FrameId, MarkerId, GapId, Pixels>
where FrameId: UnwindSafe, Pixels: UnwindSafe, MarkerId: UnwindSafe, GapId: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.