Home
last modified time | relevance | path

Searched refs:av_rescale_rnd (Results 1 – 25 of 34) sorted by relevance

12

/third_party/ffmpeg/libavutil/
Dmathematics.c58 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()
Drational.c134 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()
Dmathematics.h141 int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding rnd) av_const;
Dimgutils.c333 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/
Dargo_brp.c340 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()
Dsvs.c59 st->codecpar->sample_rate = av_rescale_rnd(pitch, 48000, 4096, AV_ROUND_INF); in svs_read_header()
Dpcm.c75 pos = av_rescale_rnd(timestamp * byte_rate, in ff_pcm_read_seek()
Ddvenc.c153 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()
Dastenc.c40 … ast->loop ## type = av_rescale_rnd(ast->loop ## type, par->sample_rate, 1000, AV_ROUND_DOWN); \
Dvqf.c273 pos = av_rescale_rnd(timestamp * st->codecpar->bit_rate, in vqf_read_seek()
Dnut.c260 av_rescale_rnd(val, in ff_nut_reset_ts()
Dlibrtmp.c302 timestamp = av_rescale_rnd(timestamp, 1000, AV_TIME_BASE, in rtmp_read_seek()
Dmpeg.c1010 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()
Daadec.c349 chapter_pos = av_rescale_rnd((timestamp - ch->start) / TIMEPREC, in aa_read_seek()
Dgxfenc.c907 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()
Dmpegtsenc.c924 …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()
Dhls.c2197 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/
Dresampling_audio.c151 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()
Dmuxing.c353 … 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/
Dsidxindex.c190 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()
Dismindex.c570 av_rescale_rnd(track->duration, AV_TIME_BASE, in handle_file()
/third_party/ffmpeg/libavutil/tests/
Drational.c69 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/
DFFMpegExtractor.cpp266 auto dst_nb_samples = (int32_t) av_rescale_rnd( in decode()
/third_party/ffmpeg/libswresample/
Dresample.c535 …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/
Dutils.c758 samples = av_rescale_rnd(samples, in avresample_get_out_samples()

12