Home
last modified time | relevance | path

Searched refs:av_rescale_rnd (Results 1 - 25 of 36) sorted by relevance

12

/third_party/ffmpeg/libavutil/
H A 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()
H A Dmathematics.h95 * 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 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()
H A Dimgutils.c334 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 Dsrc_avsynctest.c216 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 Dvf_pseudocolor.c652 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 Dresampling_audio.c152 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 Dmuxing.c354 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 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()
H A Dsvs.c57 st->codecpar->sample_rate = av_rescale_rnd(pitch, 48000, 4096, AV_ROUND_INF); in svs_read_header()
H A Dpcm.c75 pos = av_rescale_rnd(timestamp * byte_rate, in ff_pcm_read_seek()
H A Ddvenc.c152 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 Dvqf.c273 pos = av_rescale_rnd(timestamp * st->codecpar->bit_rate, in vqf_read_seek()
H A Dastenc.c40 ast->loop ## type = av_rescale_rnd(ast->loop ## type, par->sample_rate, 1000, AV_ROUND_DOWN); \
H A Dlibrtmp.c244 timestamp = av_rescale_rnd(timestamp, 1000, AV_TIME_BASE, in rtmp_read_seek()
H A Dnut.c260 av_rescale_rnd(val, in ff_nut_reset_ts()
H A Dseek.c676 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 Daadec.c314 chapter_pos = av_rescale_rnd((timestamp - ch->start) / TIMEPREC, in aa_read_seek()
H A Dgxfenc.c890 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 Dmpeg.c1012 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 Drational.c69 res = av_rescale_rnd(a,b,c, AV_ROUND_ZERO); in main()
/third_party/ffmpeg/tools/
H A 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()
H A Dismindex.c570 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 DFFMpegExtractor.cpp266 auto dst_nb_samples = (int32_t) av_rescale_rnd( in decode()
/third_party/ffmpeg/libavresample/
H A Dutils.c758 samples = av_rescale_rnd(samples, in avresample_get_out_samples()

Completed in 20 milliseconds

12