class TimelineFunction
Defined at line 22 of file ../../sdk/lib/media/cpp/timeline_function.h
A linear function from int64_t to int64_t with non-negative slope that
translates reference timeline values into subject timeline values (the
'subject' being the timeline that's represented by the function). The
representation is in point-slope form. The point is represented as two
int64_t time values (subject_time, reference_time), and the slope (rate) is
represented as a TimelineRate, the ratio of two uint32_t values
(subject_delta / reference_delta).
Public Methods
int64_t Apply (int64_tsubject_time,int64_treference_time,TimelineRaterate,int64_treference_input)
Applies a timeline function.
Defined at line 18 of file ../../src/media/audio/lib/timeline/timeline_function.cc
int64_t ApplyInverse (int64_tsubject_time,int64_treference_time,TimelineRaterate,int64_tsubject_input)
Applies the inverse of a timeline function.
Defined at line 30 of file ../../sdk/lib/media/cpp/timeline_function.h
void TimelineFunction ()
Defined at line 42 of file ../../sdk/lib/media/cpp/timeline_function.h
void TimelineFunction (int64_tsubject_time,int64_treference_time,uint64_tsubject_delta,uint64_treference_delta)
Defined at line 43 of file ../../src/media/audio/lib/timeline/timeline_function.h
void TimelineFunction (int64_tsubject_time,int64_treference_time,uint32_tsubject_delta,uint32_treference_delta)
Defined at line 44 of file ../../sdk/lib/media/cpp/timeline_function.h
void TimelineFunction (int64_tsubject_time,int64_treference_time,TimelineRaterate)
Defined at line 50 of file ../../sdk/lib/media/cpp/timeline_function.h
void TimelineFunction (TimelineRate rate)
Defined at line 53 of file ../../sdk/lib/media/cpp/timeline_function.h
TimelineFunction Compose (const TimelineFunction &bc,const TimelineFunction &ab,boolexact)
Composes two timeline functions B->C and A->B producing A->C. If exact is
true, DCHECKs on loss of precision.
Defined at line 55 of file ../../src/media/audio/lib/timeline/timeline_function.cc
bool invertible ()
Determines whether this |TimelineFunction| is invertible.
Defined at line 57 of file ../../sdk/lib/media/cpp/timeline_function.h
int64_t Apply (int64_t reference_input)
Applies the function. Returns TimelineRate::kOverflow on overflow.
Defined at line 60 of file ../../sdk/lib/media/cpp/timeline_function.h
int64_t ApplyInverse (int64_t subject_input)
Applies the inverse of the function. Returns TimelineRate::kOverflow on
overflow.
Defined at line 66 of file ../../sdk/lib/media/cpp/timeline_function.h
int64_t operator() (int64_t reference_input)
Applies the function. Returns TimelineRate::kOverflow on overflow.
Defined at line 72 of file ../../sdk/lib/media/cpp/timeline_function.h
TimelineFunction Inverse ()
Returns a timeline function that is the inverse of this timeline function.
Defined at line 75 of file ../../sdk/lib/media/cpp/timeline_function.h
int64_t subject_time ()
Defined at line 80 of file ../../sdk/lib/media/cpp/timeline_function.h
int64_t reference_time ()
Defined at line 82 of file ../../sdk/lib/media/cpp/timeline_function.h
const TimelineRate & rate ()
Defined at line 84 of file ../../sdk/lib/media/cpp/timeline_function.h
uint32_t subject_delta ()
Defined at line 86 of file ../../sdk/lib/media/cpp/timeline_function.h
uint32_t reference_delta ()
Defined at line 88 of file ../../sdk/lib/media/cpp/timeline_function.h