Miam-Player  0.8.0
A nice music player
rational.h File Reference
#include <stdint.h>
#include <limits.h>
#include "attributes.h"

Go to the source code of this file.

Classes

struct  AVRational
 

Typedefs

typedef struct AVRational AVRational
 

Functions

int av_reduce (int *dst_num, int *dst_den, int64_t num, int64_t den, int64_t max)
 
AVRational av_mul_q (AVRational b, AVRational c) av_const
 
AVRational av_div_q (AVRational b, AVRational c) av_const
 
AVRational av_add_q (AVRational b, AVRational c) av_const
 
AVRational av_sub_q (AVRational b, AVRational c) av_const
 
AVRational av_d2q (double d, int max) av_const
 
int av_nearer_q (AVRational q, AVRational q1, AVRational q2)
 
int av_find_nearest_q_idx (AVRational q, const AVRational *q_list)
 
uint32_t av_q2intfloat (AVRational q)
 

Detailed Description

Utilties for rational number calculation.

Author
Michael Niedermayer micha.nosp@m.elni.nosp@m.@gmx..nosp@m.at