You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
527 B

/************************************************************************/
/* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
/************************************************************************/
#ifndef RATIONAL_H
#define RATIONAL_H
/* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
typedef struct AVRational
{
int num; // numerator // <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int den; // denominator // <EFBFBD><EFBFBD>ĸ
} AVRational;
/* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
static inline double av_q2d(AVRational a)
{
return a.num / (double)a.den;
}
#endif