FFmpeg
Data Structures | Functions
rational64.h File Reference
#include <stdint.h>
#include <limits.h>
#include "libavutil/attributes.h"

Go to the source code of this file.

Data Structures

struct  AVRational64
 64-bit Rational number (pair of numerator and denominator). More...
 

Functions

static AVRational64 av_make_q64 (int64_t num, int64_t den)
 Create an AVRational64. More...
 
int av_cmp_q64 (AVRational64 a, AVRational64 b)
 Compare two 64-bit rationals. More...
 
static double av_q2d_64 (AVRational64 a)
 Convert an AVRational64 to a double. More...
 
AVRational64 av_mul_q64 (AVRational64 b, AVRational64 c) av_const
 Multiply two 64-bit rationals. More...
 
AVRational64 av_div_q64 (AVRational64 b, AVRational64 c) av_const
 Divide one 64-bit rational by another. More...
 
AVRational64 av_add_q64 (AVRational64 b, AVRational64 c) av_const
 Add two 64-bit rationals. More...
 
AVRational64 av_sub_q64 (AVRational64 b, AVRational64 c) av_const
 Subtract one 64-bit rational from another. More...
 
static av_always_inline AVRational64 av_inv_q64 (AVRational64 q)
 Invert a 64-bit rational. More...
 
AVRational64 av_gcd_q64 (AVRational64 a, AVRational64 b, int max_den, AVRational64 def)
 Return the best rational so that a and b are multiple of it. More...
 

Detailed Description

64-bit extension of AVRational.

Author
Niklas Haas

Definition in file rational64.h.