hvirtual/quicktime/ffmpeg/libavcodec/rational.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  AVRational

Functions

static int av_cmp_q (AVRational a, AVRational b)
static double av_q2d (AVRational a)
AVRational av_mul_q (AVRational b, AVRational c)
AVRational av_div_q (AVRational b, AVRational c)
AVRational av_add_q (AVRational b, AVRational c)
AVRational av_sub_q (AVRational b, AVRational c)
AVRational av_d2q (double d, int max)


Detailed Description

Rational numbers.
Author:
Michael Niedermayer <michaelni@gmx.at>

Definition in file rational.h.


Function Documentation

AVRational av_add_q ( AVRational  b,
AVRational  c 
)

returns b+c.

Definition at line 53 of file rational.c.

References av_reduce(), AVRational::den, and AVRational::num.

Here is the call graph for this function:

static int av_cmp_q ( AVRational  a,
AVRational  b 
) [inline, static]

returns 0 if a==b, 1 if a>b and -1 if a<b.

Definition at line 41 of file rational.h.

References AVRational::den, and AVRational::num.

Referenced by new_video_stream().

AVRational av_d2q ( double  d,
int  max 
)

Converts a double precission floating point number to a AVRational.

Parameters:
max the maximum allowed numerator and denominator

Definition at line 70 of file rational.c.

References a, ABS, av_reduce(), AVRational::den, e, LL, and AVRational::num.

Referenced by mpeg_decode_postinit(), and new_video_stream().

Here is the call graph for this function:

AVRational av_div_q ( AVRational  b,
AVRational  c 
)

returns b/c.

Definition at line 45 of file rational.c.

References av_reduce(), AVRational::den, and AVRational::num.

Referenced by mpeg_decode_postinit().

Here is the call graph for this function:

AVRational av_mul_q ( AVRational  b,
AVRational  c 
)

returns b*c.

Definition at line 37 of file rational.c.

References av_reduce(), AVRational::den, and AVRational::num.

Here is the call graph for this function:

static double av_q2d ( AVRational  a  )  [inline, static]

AVRational av_sub_q ( AVRational  b,
AVRational  c 
)

returns b-c.

Definition at line 61 of file rational.c.

References av_reduce(), AVRational::den, and AVRational::num.

Referenced by new_video_stream().

Here is the call graph for this function:


Generated on Mon Apr 28 14:05:56 2008 for Cinelerra by  doxygen 1.5.5