/third_party/ffmpeg/libavutil/ |
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()
|
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()
|
D | mathematics.h | 141 int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding rnd) av_const;
|
D | imgutils.c | 333 scaled_dim = av_rescale_rnd(w, sar.num, sar.den, AV_ROUND_ZERO); in av_image_check_sar() 335 scaled_dim = av_rescale_rnd(h, sar.den, sar.num, AV_ROUND_ZERO); in av_image_check_sar()
|
/third_party/ffmpeg/libavformat/ |
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()
|
D | svs.c | 59 st->codecpar->sample_rate = av_rescale_rnd(pitch, 48000, 4096, AV_ROUND_INF); in svs_read_header()
|
D | pcm.c | 75 pos = av_rescale_rnd(timestamp * byte_rate, in ff_pcm_read_seek()
|
D | dvenc.c | 153 ct = c->start_time + av_rescale_rnd(c->frames, c->sys->time_base.num, in dv_write_pack() 169 ct = c->start_time + av_rescale_rnd(c->frames, c->sys->time_base.num, in dv_write_pack()
|
D | astenc.c | 40 … ast->loop ## type = av_rescale_rnd(ast->loop ## type, par->sample_rate, 1000, AV_ROUND_DOWN); \
|
D | vqf.c | 273 pos = av_rescale_rnd(timestamp * st->codecpar->bit_rate, in vqf_read_seek()
|
D | nut.c | 260 av_rescale_rnd(val, in ff_nut_reset_ts()
|
D | librtmp.c | 302 timestamp = av_rescale_rnd(timestamp, 1000, AV_TIME_BASE, in rtmp_read_seek()
|
D | mpeg.c | 1010 min_ts = av_rescale_rnd(min_ts, time_base.den, in vobsub_read_seek() 1013 max_ts = av_rescale_rnd(max_ts, time_base.den, in vobsub_read_seek()
|
D | aadec.c | 349 chapter_pos = av_rescale_rnd((timestamp - ch->start) / TIMEPREC, in aa_read_seek()
|
D | gxfenc.c | 907 field_nb = av_rescale_rnd(pkt->dts, gxf->time_base.den, in gxf_write_media_preamble() 1000 field_nb[i] = av_rescale_rnd(pkt[i]->dts, gxf->time_base.den, in gxf_compare_field_nb()
|
D | mpegtsenc.c | 924 …frame_period = av_rescale_rnd(frame_size, PCR_TIME_BASE, pcr_st->codecpar->sample_rate, AV_ROUND_U… in enable_pcr_generation_for_stream() 926 …frame_period = av_rescale_rnd(pcr_st->avg_frame_rate.den, PCR_TIME_BASE, pcr_st->avg_frame_rate.nu… in enable_pcr_generation_for_stream()
|
D | hls.c | 2197 ts_diff = av_rescale_rnd(pls->pkt->dts, AV_TIME_BASE, in hls_read_packet() 2303 seek_timestamp = av_rescale_rnd(timestamp, AV_TIME_BASE, in hls_read_seek()
|
/third_party/ffmpeg/doc/examples/ |
D | resampling_audio.c | 151 av_rescale_rnd(src_nb_samples, dst_rate, src_rate, AV_ROUND_UP); in main() 168 dst_nb_samples = av_rescale_rnd(swr_get_delay(swr_ctx, src_rate) + in main()
|
D | muxing.c | 353 … 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/tools/ |
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()
|
D | ismindex.c | 570 av_rescale_rnd(track->duration, AV_TIME_BASE, in handle_file()
|
/third_party/ffmpeg/libavutil/tests/ |
D | rational.c | 69 res = av_rescale_rnd(a,b,c, AV_ROUND_ZERO); in main()
|
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/src/main/cpp/audio/ |
D | FFMpegExtractor.cpp | 266 auto dst_nb_samples = (int32_t) av_rescale_rnd( in decode()
|
/third_party/ffmpeg/libswresample/ |
D | resample.c | 535 …num = av_rescale_rnd(num, s->out_sample_rate, ((int64_t)s->in_sample_rate) * c->phase_count, AV_RO… in get_out_samples()
|
/third_party/ffmpeg/libavresample/ |
D | utils.c | 758 samples = av_rescale_rnd(samples, in avresample_get_out_samples()
|