pub struct TrackJob {
rx: Receiver<((f32, f32, f32), f32)>,
pub points: Vec<(f32, f32, f32)>,
pub progress: f32,
}Fields§
§rx: Receiver<((f32, f32, f32), f32)>§points: Vec<(f32, f32, f32)>Points so far, in PathAsset::points form and always in time order once poll reports done.
progress: f32Implementations§
Source§impl TrackJob
impl TrackJob
Sourcepub fn start(
project: &Project,
clip: u64,
(cx, cy, hw, hh): (f32, f32, f32, f32),
search: f32,
refresh: u32,
backward: bool,
backend: Backend,
) -> Result<Self, String>
pub fn start( project: &Project, clip: u64, (cx, cy, hw, hh): (f32, f32, f32, f32), search: f32, refresh: u32, backward: bool, backend: Backend, ) -> Result<Self, String>
Track clip from its head (or its tail, backward) with the box centred on (cx, cy) and
half-sized (hw, hh), all in canvas px relative to the centre. refresh re-grabs the template
every N frames (0 = never: rigid features drift less without it). Err = nothing to track.
Auto Trait Implementations§
impl Freeze for TrackJob
impl RefUnwindSafe for TrackJob
impl Send for TrackJob
impl !Sync for TrackJob
impl Unpin for TrackJob
impl UnwindSafe for TrackJob
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<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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