Definition in file mathematics.c.
Go to the source code of this file.
Functions | |
| int64_t | ff_gcd (int64_t a, int64_t b) |
| int64_t | av_rescale_rnd (int64_t a, int64_t b, int64_t c, enum AVRounding rnd) |
| rescale a 64bit integer with specified rounding. | |
| int64_t | av_rescale (int64_t a, int64_t b, int64_t c) |
| rescale a 64bit integer with rounding to nearest. | |
| int64_t | av_rescale_q (int64_t a, AVRational bq, AVRational cq) |
| rescale a 64bit integer by 2 rational numbers. | |
| main () | |
Variables | |
| const uint8_t | ff_sqrt_tab [128] |
| const uint8_t | ff_log2_tab [256] |
Definition at line 47 of file mathematics.c.
Referenced by av_reduce(), avcodec_string(), decode_main_header(), dump_stream_format(), ff_gcd(), ff_parse_specific_params(), h263_decode_picture_header(), main(), mov_read_ctts(), mov_read_stts(), MPV_encode_init(), and xvid_correct_framerate().
rescale a 64bit integer with specified rounding.
a simple a*b/c isn't possible as it can overflow
Definition at line 52 of file mathematics.c.
Referenced by av_rescale(), av_rescale_q(), av_rescale_rnd(), ff_nut_reset_ts(), gxf_write_media_preamble(), mov_write_edts_tag(), mov_write_mvhd_tag(), mov_write_tkhd_tag(), pcm_read_seek(), and rtp_write_header().
rescale a 64bit integer with rounding to nearest.
a simple a*b/c isn't possible as it can overflow
Definition at line 104 of file mathematics.c.
Referenced by asf_build_simple_index(), av_estimate_timings_from_bit_rate(), av_gen_search(), av_seek_frame(), av_update_cur_dts(), avi_read_header(), avi_read_packet(), avi_read_seek(), compute_pkt_fields(), compute_pkt_fields2(), dc1394_read_header(), AvFormatDecoder::DoFastForward(), dump_format(), dv_extract_video_info(), dv_offset_reset(), dv_read_header(), getFileInfo(), main(), mov_read_packet(), mpeg_mux_write_packet(), mxf_read_seek(), nsv_parse_NSVs_header(), output_packet(), pcm_read_seek(), and wav_write_trailer().
| int64_t av_rescale_q | ( | int64_t | a, | |
| AVRational | bq, | |||
| AVRational | cq | |||
| ) |
rescale a 64bit integer by 2 rational numbers.
Definition at line 108 of file mathematics.c.
Referenced by av_find_stream_info(), av_update_stream_timings(), fill_all_stream_timings(), mov_read_seek(), mp3_parse_vbr_tags(), oggvorbis_encode_frame(), rtcp_send_sr(), rtp_write_header(), and rtsp_read_seek().
| main | ( | void | ) |
Definition at line 116 of file mathematics.c.
| const uint8_t ff_sqrt_tab[128] |
Initial value:
{
0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5,
5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
9, 9, 9, 9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11
}
Definition at line 29 of file mathematics.c.
Referenced by ff_sqrt().
| const uint8_t ff_log2_tab[256] |
Initial value:
{
0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,
5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,
6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,
7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,
7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,
7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,
7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7
}
Definition at line 36 of file mathematics.c.
Referenced by av_log2(), av_log2_16bit(), decode_frame(), and seq_decode_op1().
1.5.5