Lines Matching refs:AVRational
38 AVRational a0 = { 0, 1 }, a1 = { 1, 0 };
47 a1 = (AVRational) { num, den };
62 a1 = (AVRational) { x * a1.num + a0.num, x * a1.den + a0.den };
67 a1 = (AVRational) { a2n, a2d };
79 AVRational av_mul_q(AVRational b, AVRational c)
87 AVRational av_div_q(AVRational b, AVRational c)
89 return av_mul_q(b, (AVRational) { c.den, c.num });
92 AVRational av_add_q(AVRational b, AVRational c) {
100 AVRational av_sub_q(AVRational b, AVRational c)
102 return av_add_q(b, (AVRational) { -c.num, c.den });
105 AVRational av_d2q(double d, int max)
107 AVRational a;
112 return (AVRational) { 0,0 };
114 return (AVRational) { d < 0 ? -1 : 1, 0 };
125 int av_nearer_q(AVRational q, AVRational q1, AVRational q2)
140 int av_find_nearest_q_idx(AVRational q, const AVRational* q_list)
153 AVRational a,b,r;