Logo Search packages:      
Sourcecode: blender version File versions

int64_t av_rescale_q ( int64_t  a,
AVRational  bq,
AVRational  cq 

rescale a 64bit integer by 2 rational numbers.

Definition at line 106 of file mathematics.c.

References av_rescale_rnd(), AVRational::den, and AVRational::num.

Referenced by av_find_stream_info(), and av_update_stream_timings().

    int64_t b= bq.num * (int64_t)cq.den;
    int64_t c= cq.num * (int64_t)bq.den;
    return av_rescale_rnd(a, b, c, AV_ROUND_NEAR_INF);

Generated by  Doxygen 1.6.0   Back to index