
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) |
Definition in file rational.h.
| 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.

| 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.
| 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().

| 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().

| 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.

| static double av_q2d | ( | AVRational | a | ) | [inline, static] |
converts the given AVRational to a double.
Definition at line 51 of file rational.h.
References AVRational::den, and AVRational::num.
Referenced by audio_decode_frame(), av_encode(), avcodec_string(), do_video_out(), do_video_stats(), ff_rate_control_init(), ff_rate_estimate_qscale(), ff_vbv_update(), init_pass2(), modify_qscale(), opt_input_file(), output_picture2(), video_image_display(), and video_thread().
| 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().

1.5.5