Searched refs:inc_tb (Results 1 – 2 of 2) sorted by relevance
/third_party/ffmpeg/libavutil/ |
D | mathematics.c | 191 int64_t av_add_stable(AVRational ts_tb, int64_t ts, AVRational inc_tb, int64_t inc) in av_add_stable() argument 196 inc_tb = av_mul_q(inc_tb, (AVRational) {inc, 1}); in av_add_stable() 198 m = inc_tb.num * (int64_t)ts_tb.den; in av_add_stable() 199 d = inc_tb.den * (int64_t)ts_tb.num; in av_add_stable() 207 int64_t old = av_rescale_q(ts, ts_tb, inc_tb); in av_add_stable() 208 int64_t old_ts = av_rescale_q(old, inc_tb, ts_tb); in av_add_stable() 213 return av_sat_add64(av_rescale_q(old + 1, inc_tb, ts_tb), ts - old_ts); in av_add_stable()
|
D | mathematics.h | 236 int64_t av_add_stable(AVRational ts_tb, int64_t ts, AVRational inc_tb, int64_t inc);
|