Revision bf7e799c libavutil/rational.h

View differences:

libavutil/rational.h
114 114
AVRational av_d2q(double d, int max) av_const;
115 115

  
116 116
/**
117
 * @return 1 if \q1 is nearer to \p q than \p q2, -1 if \p q2 is nearer
118
 * than \p q1, 0 if they have the same distance.
117
 * @return 1 if q1 is nearer to q than q2, -1 if q2 is nearer
118
 * than q1, 0 if they have the same distance.
119 119
 */
120 120
int av_nearer_q(AVRational q, AVRational q1, AVRational q2);
121 121

  
122 122
/**
123
 * Finds the nearest value in \p q_list to \p q.
123
 * Finds the nearest value in q_list to q.
124 124
 * @param q_list an array of rationals terminated by {0, 0}
125 125
 * @return the index of the nearest value found in the array
126 126
 */

Also available in: Unified diff