FFmpeg
Loading...
Searching...
No Matches
rational64.h File Reference

64-bit extension of AVRational. More...

#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.
 
int av_cmp_q64 (AVRational64 a, AVRational64 b)
 Compare two 64-bit rationals.
 
static double av_q2d_64 (AVRational64 a)
 Convert an AVRational64 to a double.
 
AVRational64 av_mul_q64 (AVRational64 b, AVRational64 c) av_const
 Multiply two 64-bit rationals.
 
AVRational64 av_div_q64 (AVRational64 b, AVRational64 c) av_const
 Divide one 64-bit rational by another.
 
AVRational64 av_add_q64 (AVRational64 b, AVRational64 c) av_const
 Add two 64-bit rationals.
 
AVRational64 av_sub_q64 (AVRational64 b, AVRational64 c) av_const
 Subtract one 64-bit rational from another.
 
static av_always_inline AVRational64 av_inv_q64 (AVRational64 q)
 Invert a 64-bit rational.
 

Detailed Description

64-bit extension of AVRational.

Author
Niklas Haas

Definition in file rational64.h.