FFmpeg
Data Structures | Functions
rational.h File Reference

rational numbers More...

#include <stdint.h>
#include <limits.h>
#include "attributes.h"

Go to the source code of this file.

Data Structures

struct   AVRational
  rational number numerator/denominator More...
 

Functions

static AVRational  av_make_q (int num, int den)
  Create a rational.
 
static int  av_cmp_q (AVRational a, AVRational b)
  Compare two rationals.
 
static double  av_q2d (AVRational a)
  Convert rational to double.
 
int  av_reduce (int *dst_num, int *dst_den, int64_t num, int64_t den, int64_t max)
  Reduce a fraction.
 
  Multiply two rationals.
 
  Divide one rational by another.
 
  Add two rationals.
 
  Subtract one rational from another.
 
  Invert a rational.
 
AVRational  av_d2q (double d, int max) av_const
  Convert a double precision floating point number to a rational.
 
 
int  av_find_nearest_q_idx (AVRational q, const AVRational *q_list)
  Find the nearest value in q_list to q.
 

Detailed Description

rational numbers

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

Definition in file rational.h.


Generated on Sun Mar 8 2015 02:35:33 for FFmpeg by   doxygen 1.8.2

AltStyle によって変換されたページ (->オリジナル) /