Lines Matching refs:AVRational
39 AVRational a0 = { 0, 1 }, a1 = { 1, 0 };
48 a1 = (AVRational) { num, den };
63 a1 = (AVRational) { x * a1.num + a0.num, x * a1.den + a0.den };
68 a1 = (AVRational) { a2n, a2d };
80 AVRational av_mul_q(AVRational b, AVRational c)
88 AVRational av_div_q(AVRational b, AVRational c)
90 return av_mul_q(b, (AVRational) { c.den, c.num });
93 AVRational av_add_q(AVRational b, AVRational c) {
101 AVRational av_sub_q(AVRational b, AVRational c)
103 return av_add_q(b, (AVRational) { -c.num, c.den });
106 AVRational av_d2q(double d, int max)
108 AVRational a;
113 return (AVRational) { 0,0 };
115 return (AVRational) { d < 0 ? -1 : 1, 0 };
123 int av_nearer_q(AVRational q, AVRational q1, AVRational q2)
138 int av_find_nearest_q_idx(AVRational q, const AVRational* q_list)
151 AVRational a,b;