/third_party/ffmpeg/libavutil/ |
H A D | mathematics.c | 58 int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding rnd) in av_rescale_rnd() function 75 return -(uint64_t)av_rescale_rnd(-FFMAX(a, -INT64_MAX), b, c, rnd ^ ((rnd >> 1) & 1)); in av_rescale_rnd() 131 return av_rescale_rnd(a, b, c, AV_ROUND_NEAR_INF); in av_rescale() 139 return av_rescale_rnd(a, b, c, rnd); in av_rescale_q_rnd() 153 if (av_rescale_rnd(ts_a, a, b, AV_ROUND_DOWN) < ts_b) in av_compare_ts() 155 if (av_rescale_rnd(ts_b, b, a, AV_ROUND_DOWN) < ts_a) in av_compare_ts()
|
H A D | mathematics.h | 95 * av_rescale_rnd(3, 1, 2, AV_ROUND_UP | AV_ROUND_PASS_MINMAX); 101 * av_rescale_rnd(AV_NOPTS_VALUE, 1, 2, AV_ROUND_UP | AV_ROUND_PASS_MINMAX); 126 * This function is equivalent to av_rescale_rnd() with #AV_ROUND_NEAR_INF. 128 * @see av_rescale_rnd(), av_rescale_q(), av_rescale_q_rnd() 141 int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding rnd) av_const; 150 * @see av_rescale(), av_rescale_rnd(), av_rescale_q_rnd() 159 * @see av_rescale(), av_rescale_rnd(), av_rescale_q()
|
H A D | rational.c | 134 int64_t x_up = av_rescale_rnd(a, q.den, b, AV_ROUND_UP); in av_nearer_q() 137 int64_t x_down = av_rescale_rnd(a, q.den, b, AV_ROUND_DOWN); in av_nearer_q()
|
H A D | imgutils.c | 334 scaled_dim = av_rescale_rnd(w, sar.num, sar.den, AV_ROUND_ZERO); in av_image_check_sar() 336 scaled_dim = av_rescale_rnd(h, sar.den, sar.num, AV_ROUND_ZERO); in av_image_check_sar()
|
/third_party/ffmpeg/libavfilter/ |
H A D | src_avsynctest.c | 216 duration[0] = av_rescale_rnd(s->sample_rate, s->frame_rate.den, s->frame_rate.num, AV_ROUND_DOWN); in audio_frame() 217 duration[1] = av_rescale_rnd(s->sample_rate, s->frame_rate.den, s->frame_rate.num, AV_ROUND_UP); in audio_frame() 265 return av_rescale_rnd(x, num, den, AV_ROUND_UP); in offset() 274 const int step = av_rescale_rnd(w, s->delay_range.den, s->delay_range.num, AV_ROUND_DOWN); in video_frame() 315 intpart = av_rescale_rnd(temp, outlink->time_base.num, outlink->time_base.den, AV_ROUND_NEAR_INF); in video_frame() 316 intpart = temp - av_rescale_rnd(intpart, outlink->time_base.den, outlink->time_base.num, AV_ROUND_NEAR_INF); in video_frame()
|
H A D | vf_pseudocolor.c | 652 int start = av_rescale_rnd(s->max + 1, rstart.num, rstart.den, AV_ROUND_UP); in config_input() 653 int end = av_rescale_rnd(s->max + 1, rend.num, rend.den, AV_ROUND_UP); in config_input()
|
/third_party/ffmpeg/doc/examples/ |
H A D | resampling_audio.c | 152 av_rescale_rnd(src_nb_samples, dst_rate, src_rate, AV_ROUND_UP); in main() 169 dst_nb_samples = av_rescale_rnd(swr_get_delay(swr_ctx, src_rate) + in main()
|
H A D | muxing.c | 354 dst_nb_samples = av_rescale_rnd(swr_get_delay(ost->swr_ctx, c->sample_rate) + frame->nb_samples, in write_audio_frame()
|
/third_party/ffmpeg/libavformat/ |
H A D | argo_brp.c | 340 st->start_time = av_rescale_rnd(blk.start_ms, st->codecpar->sample_rate, 1000, AV_ROUND_UP); in argo_brp_read_header() 341 st->duration = av_rescale_rnd(hdr->duration_ms, st->codecpar->sample_rate, 1000, AV_ROUND_UP); in argo_brp_read_header() 404 pkt->pts = av_rescale_rnd(blk.start_ms, ckhdr.sample_rate, 1000, AV_ROUND_UP); in argo_brp_read_packet() 406 pkt->duration = av_rescale_rnd(1, st->duration, shdr->extradata.bvid.num_frames, AV_ROUND_UP); in argo_brp_read_packet()
|
H A D | svs.c | 57 st->codecpar->sample_rate = av_rescale_rnd(pitch, 48000, 4096, AV_ROUND_INF); in svs_read_header()
|
H A D | pcm.c | 75 pos = av_rescale_rnd(timestamp * byte_rate, in ff_pcm_read_seek()
|
H A D | dvenc.c | 152 ct = c->start_time + av_rescale_rnd(c->frames, c->sys->time_base.num, in dv_write_pack() 168 ct = c->start_time + av_rescale_rnd(c->frames, c->sys->time_base.num, in dv_write_pack()
|
H A D | vqf.c | 273 pos = av_rescale_rnd(timestamp * st->codecpar->bit_rate, in vqf_read_seek()
|
H A D | astenc.c | 40 ast->loop ## type = av_rescale_rnd(ast->loop ## type, par->sample_rate, 1000, AV_ROUND_DOWN); \
|
H A D | librtmp.c | 244 timestamp = av_rescale_rnd(timestamp, 1000, AV_TIME_BASE, in rtmp_read_seek()
|
H A D | nut.c | 260 av_rescale_rnd(val, in ff_nut_reset_ts()
|
H A D | seek.c | 676 min_ts = av_rescale_rnd(min_ts, time_base.den, in avformat_seek_file() 679 max_ts = av_rescale_rnd(max_ts, time_base.den, in avformat_seek_file()
|
H A D | aadec.c | 314 chapter_pos = av_rescale_rnd((timestamp - ch->start) / TIMEPREC, in aa_read_seek()
|
H A D | gxfenc.c | 890 field_nb = av_rescale_rnd(pkt->dts, gxf->time_base.den, in gxf_write_media_preamble() 983 field_nb[i] = av_rescale_rnd(pkt[i]->dts, gxf->time_base.den, in gxf_compare_field_nb()
|
H A D | mpeg.c | 1012 min_ts = av_rescale_rnd(min_ts, time_base.den, in vobsub_read_seek() 1015 max_ts = av_rescale_rnd(max_ts, time_base.den, in vobsub_read_seek()
|
/third_party/ffmpeg/libavutil/tests/ |
H A D | rational.c | 69 res = av_rescale_rnd(a,b,c, AV_ROUND_ZERO); in main()
|
/third_party/ffmpeg/tools/ |
H A D | sidxindex.c | 190 av_rescale_rnd(track->duration, AV_TIME_BASE, in handle_file() 222 fractions = av_rescale_rnd(fractions, pow(10, decimals), AV_TIME_BASE, round); in write_time()
|
H A D | ismindex.c | 570 av_rescale_rnd(track->duration, AV_TIME_BASE, in handle_file()
|
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/src/main/cpp/audio/ |
H A D | FFMpegExtractor.cpp | 266 auto dst_nb_samples = (int32_t) av_rescale_rnd( in decode()
|
/third_party/ffmpeg/libavresample/ |
H A D | utils.c | 758 samples = av_rescale_rnd(samples, in avresample_get_out_samples()
|