pub struct CameraAngle {
pub id: AngleId,
pub label: String,
pub clips: Vec<ClipId>,
pub sync_points: Vec<SyncPoint>,
pub active: bool,
pub alignment_offset: i64,
}Expand description
A single camera angle within a multi-cam group.
Fields§
§id: AngleIdUnique angle identifier.
label: StringHuman-readable label (e.g. “Camera A”, “Wide Shot”).
clips: Vec<ClipId>Clip IDs that belong to this angle (video + audio).
sync_points: Vec<SyncPoint>Sync points for this angle.
active: boolWhether this angle is currently active (selected for output).
alignment_offset: i64The computed offset to align this angle to the master timeline. Positive means the source starts after the master zero point.
Implementations§
Source§impl CameraAngle
impl CameraAngle
Sourcepub fn remove_clip(&mut self, clip_id: ClipId) -> bool
pub fn remove_clip(&mut self, clip_id: ClipId) -> bool
Remove a clip from this angle.
Sourcepub fn add_sync_point(&mut self, point: SyncPoint)
pub fn add_sync_point(&mut self, point: SyncPoint)
Add a sync point.
Sourcepub fn compute_alignment(&self) -> Option<i64>
pub fn compute_alignment(&self) -> Option<i64>
Compute alignment offset from sync points.
Uses a weighted average of sync point deltas, weighted by confidence.
Returns None if there are no sync points.
Trait Implementations§
Source§impl Clone for CameraAngle
impl Clone for CameraAngle
Source§fn clone(&self) -> CameraAngle
fn clone(&self) -> CameraAngle
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 CameraAngle
impl RefUnwindSafe for CameraAngle
impl Send for CameraAngle
impl Sync for CameraAngle
impl Unpin for CameraAngle
impl UnsafeUnpin for CameraAngle
impl UnwindSafe for CameraAngle
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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