av_rescale_q 189 doc/examples/filtering_video.c delay = av_rescale_q(frame->pts - last_pts, av_rescale_q 375 doc/examples/muxing.c frame->pts = av_rescale_q(ost->samples_count, (AVRational){1, c->sample_rate}, c->time_base); av_rescale_q 161 doc/examples/remuxing.c pkt.duration = av_rescale_q(pkt.duration, in_stream->time_base, out_stream->time_base); av_rescale_q 251 fftools/ffmpeg.c pts = av_rescale_q(sub->pts + sub->start_display_time * 1000LL, av_rescale_q 253 fftools/ffmpeg.c end_pts = av_rescale_q(sub->pts + sub->end_display_time * 1000LL, av_rescale_q 296 fftools/ffmpeg.c pts2 = av_rescale_q(pts, ist->st->time_base, ist2->st->time_base) - 1; av_rescale_q 768 fftools/ffmpeg.c pkt->duration = av_rescale_q(1, av_inv_q(ost->frame_rate), av_rescale_q 844 fftools/ffmpeg.c int64_t end = av_rescale_q(ost->sync_opts - ost->first_pts, ost->enc_ctx->time_base, AV_TIME_BASE_Q); av_rescale_q 1001 fftools/ffmpeg.c ost->sync_opts = av_rescale_q(pts, AV_TIME_BASE_Q, enc->time_base); av_rescale_q 1007 fftools/ffmpeg.c sub->pts += av_rescale_q(sub->start_display_time, (AVRational){ 1, 1000 }, AV_TIME_BASE_Q); av_rescale_q 1027 fftools/ffmpeg.c pkt.pts = av_rescale_q(sub->pts, AV_TIME_BASE_Q, ost->mux_timebase); av_rescale_q 1028 fftools/ffmpeg.c pkt.duration = av_rescale_q(sub->end_display_time, (AVRational){ 1, 1000 }, ost->mux_timebase); av_rescale_q 1033 fftools/ffmpeg.c pkt.pts += av_rescale_q(sub->start_display_time, (AVRational){ 1, 1000 }, ost->mux_timebase); av_rescale_q 1035 fftools/ffmpeg.c pkt.pts += av_rescale_q(sub->end_display_time, (AVRational){ 1, 1000 }, ost->mux_timebase); av_rescale_q 1471 fftools/ffmpeg.c av_rescale_q(filtered_frame->pts, filter_tb, tb) - av_rescale_q 1472 fftools/ffmpeg.c av_rescale_q(start_time, AV_TIME_BASE_Q, tb); av_rescale_q 1478 fftools/ffmpeg.c av_rescale_q(filtered_frame->pts, filter_tb, enc->time_base) - av_rescale_q 1479 fftools/ffmpeg.c av_rescale_q(start_time, AV_TIME_BASE_Q, enc->time_base); av_rescale_q 1744 fftools/ffmpeg.c pts = FFMAX(pts, av_rescale_q(av_stream_get_end_pts(ost->st), av_rescale_q 1984 fftools/ffmpeg.c int64_t ost_tb_start_time = av_rescale_q(start_time, AV_TIME_BASE_Q, ost->mux_timebase); av_rescale_q 2006 fftools/ffmpeg.c pkt->pts < av_rescale_q(comp_start, AV_TIME_BASE_Q, ist->st->time_base)) av_rescale_q 2034 fftools/ffmpeg.c opkt.pts = av_rescale_q(pkt->pts, ist->st->time_base, ost->mux_timebase) - ost_tb_start_time; av_rescale_q 2037 fftools/ffmpeg.c opkt.dts = av_rescale_q(ist->dts, AV_TIME_BASE_Q, ost->mux_timebase); av_rescale_q 2048 fftools/ffmpeg.c opkt.dts = av_rescale_q(pkt->dts, ist->st->time_base, ost->mux_timebase); av_rescale_q 2051 fftools/ffmpeg.c opkt.duration = av_rescale_q(pkt->duration, ist->st->time_base, ost->mux_timebase); av_rescale_q 2342 fftools/ffmpeg.c dts = av_rescale_q(ist->dts, AV_TIME_BASE_Q, ist->st->time_base); av_rescale_q 2426 fftools/ffmpeg.c int64_t ts = av_rescale_q(decoded_frame->pts = best_effort_timestamp, ist->st->time_base, AV_TIME_BASE_Q); av_rescale_q 2558 fftools/ffmpeg.c ist->dts += av_rescale_q(pkt->pts, ist->st->time_base, AV_TIME_BASE_Q); av_rescale_q 2579 fftools/ffmpeg.c ist->next_dts = ist->dts = av_rescale_q(pkt->dts, ist->st->time_base, AV_TIME_BASE_Q); av_rescale_q 2604 fftools/ffmpeg.c duration_dts = av_rescale_q(pkt->duration, ist->st->time_base, AV_TIME_BASE_Q); av_rescale_q 2620 fftools/ffmpeg.c ist->next_pts += av_rescale_q(duration_pts, ist->st->time_base, AV_TIME_BASE_Q); av_rescale_q 2695 fftools/ffmpeg.c ist->next_dts += av_rescale_q(pkt->duration, ist->st->time_base, AV_TIME_BASE_Q); av_rescale_q 2702 fftools/ffmpeg.c int64_t next_dts = av_rescale_q(ist->next_dts, time_base_q, av_inv_q(ist->framerate)); av_rescale_q 2703 fftools/ffmpeg.c ist->next_dts = av_rescale_q(next_dts + 1, av_inv_q(ist->framerate), time_base_q); av_rescale_q 2705 fftools/ffmpeg.c ist->next_dts += av_rescale_q(pkt->duration, ist->st->time_base, AV_TIME_BASE_Q); av_rescale_q 3079 fftools/ffmpeg.c ost->st->duration = av_rescale_q(ist->st->duration, ist->st->time_base, ost->st->time_base); av_rescale_q 3215 fftools/ffmpeg.c t = av_rescale_q(t, AV_TIME_BASE_Q, avctx->time_base); av_rescale_q 3220 fftools/ffmpeg.c pts[index++] = av_rescale_q(c->start, c->time_base, av_rescale_q 3228 fftools/ffmpeg.c pts[index++] = av_rescale_q(t, AV_TIME_BASE_Q, avctx->time_base); av_rescale_q 3550 fftools/ffmpeg.c ost->st->duration = av_rescale_q(ist->st->duration, ist->st->time_base, ost->st->time_base); av_rescale_q 3836 fftools/ffmpeg.c av_rescale_q(ost->st->cur_dts, ost->st->time_base, av_rescale_q 4182 fftools/ffmpeg.c duration = av_rescale_q(ist->nb_samples, sample_rate, ist->st->time_base); av_rescale_q 4188 fftools/ffmpeg.c duration = av_rescale_q(1, av_inv_q(ist->framerate), ist->st->time_base); av_rescale_q 4190 fftools/ffmpeg.c duration = av_rescale_q(1, av_inv_q(ist->st->avg_frame_rate), ist->st->time_base); av_rescale_q 4348 fftools/ffmpeg.c new_start_time = FFMIN(new_start_time, av_rescale_q(st->start_time, st->time_base, AV_TIME_BASE_Q)); av_rescale_q 4356 fftools/ffmpeg.c stime = av_rescale_q(is->start_time, AV_TIME_BASE_Q, ist->st->time_base); av_rescale_q 4391 fftools/ffmpeg.c pkt.dts += av_rescale_q(ifile->ts_offset, AV_TIME_BASE_Q, ist->st->time_base); av_rescale_q 4393 fftools/ffmpeg.c pkt.pts += av_rescale_q(ifile->ts_offset, AV_TIME_BASE_Q, ist->st->time_base); av_rescale_q 4412 fftools/ffmpeg.c pkt.dts -= av_rescale_q(delta, AV_TIME_BASE_Q, ist->st->time_base); av_rescale_q 4414 fftools/ffmpeg.c pkt.pts -= av_rescale_q(delta, AV_TIME_BASE_Q, ist->st->time_base); av_rescale_q 4418 fftools/ffmpeg.c duration = av_rescale_q(ifile->duration, ifile->time_base, ist->st->time_base); av_rescale_q 4455 fftools/ffmpeg.c pkt.dts -= av_rescale_q(delta, AV_TIME_BASE_Q, ist->st->time_base); av_rescale_q 4457 fftools/ffmpeg.c pkt.pts -= av_rescale_q(delta, AV_TIME_BASE_Q, ist->st->time_base); av_rescale_q 4466 fftools/ffmpeg.c int64_t pkt_pts = av_rescale_q(pkt.pts, ist->st->time_base, AV_TIME_BASE_Q); av_rescale_q 4478 fftools/ffmpeg.c ifile->last_ts = av_rescale_q(pkt.dts, ist->st->time_base, AV_TIME_BASE_Q); av_rescale_q 2038 fftools/ffmpeg_opt.c int64_t ts_off = av_rescale_q(start_time - ifile->ts_offset, av_rescale_q 2041 fftools/ffmpeg_opt.c av_rescale_q(ofile->recording_time, AV_TIME_BASE_Q, in_ch->time_base); av_rescale_q 618 fftools/ffplay.c frame->pts = av_rescale_q(frame->pts, d->avctx->pkt_timebase, tb); av_rescale_q 620 fftools/ffplay.c frame->pts = av_rescale_q(d->next_pts, d->next_pts_tb, tb); av_rescale_q 3271 fftools/ffplay.c stream_seek(is, av_rescale_q(is->ic->chapters[i]->start, is->ic->chapters[i]->time_base, av_rescale_q 2416 fftools/ffprobe.c *cur_ts = av_rescale_q(pkt.pts, tb, AV_TIME_BASE_Q); av_rescale_q 56 libavcodec/audio_frame_queue.c new->pts = av_rescale_q(f->pts, av_rescale_q 715 libavcodec/avpacket.c pkt->pts = av_rescale_q(pkt->pts, src_tb, dst_tb); av_rescale_q 717 libavcodec/avpacket.c pkt->dts = av_rescale_q(pkt->dts, src_tb, dst_tb); av_rescale_q 719 libavcodec/avpacket.c pkt->duration = av_rescale_q(pkt->duration, src_tb, dst_tb); av_rescale_q 723 libavcodec/avpacket.c pkt->convergence_duration = av_rescale_q(pkt->convergence_duration, src_tb, dst_tb); av_rescale_q 790 libavcodec/ccaption_dec.c sub->end_display_time = av_rescale_q(ctx->end_time - ctx->start_time, av_rescale_q 801 libavcodec/ccaption_dec.c sub->pts > ctx->last_real_time + av_rescale_q(200, ms_tb, AV_TIME_BASE_Q)) { av_rescale_q 412 libavcodec/cuviddec.c cupkt.timestamp = av_rescale_q(avpkt->pts, avctx->pkt_timebase, (AVRational){1, 10000000}); av_rescale_q 589 libavcodec/cuviddec.c frame->pts = av_rescale_q(parsed_frame.dispinfo.timestamp, (AVRational){1, 10000000}, avctx->pkt_timebase); av_rescale_q 417 libavcodec/decode.c int64_t diff_ts = av_rescale_q(avci->skip_samples, av_rescale_q 448 libavcodec/decode.c int64_t diff_ts = av_rescale_q(frame->nb_samples - discard_padding, av_rescale_q 952 libavcodec/decode.c ts_start = av_rescale_q(pkt->pts, tb, av_make_q(1, 100)); av_rescale_q 954 libavcodec/decode.c ts_duration = av_rescale_q(pkt->duration, tb, av_make_q(1, 100)); av_rescale_q 1010 libavcodec/decode.c sub->pts = av_rescale_q(avpkt->pts, av_rescale_q 1030 libavcodec/decode.c sub->end_display_time = av_rescale_q(avpkt->duration, av_rescale_q 754 libavcodec/dvbsubdec.c sub->end_display_time = av_rescale_q((sub->pts - ctx->prev_start ), AV_TIME_BASE_Q, (AVRational){ 1, 1000 }) - 1; av_rescale_q 261 libavcodec/internal.h return av_rescale_q(samples, (AVRational){ 1, avctx->sample_rate }, av_rescale_q 326 libavcodec/libaribb24.c sub->pts = av_rescale_q(pkt->pts, av_rescale_q 330 libavcodec/libaribb24.c av_rescale_q(subtitle_duration, av_rescale_q 383 libavcodec/libfdk-aacdec.c frame->pts -= av_rescale_q(s->output_delay, av_rescale_q 661 libavcodec/libzvbi-teletextdec.c ctx->pts = av_rescale_q(pkt->pts, avctx->pkt_timebase, AV_TIME_BASE_Q); av_rescale_q 290 libavcodec/mediacodecdec_common.c frame->pts = av_rescale_q(info->presentationTimeUs, av_rescale_q 383 libavcodec/mediacodecdec_common.c frame->pts = av_rescale_q(info->presentationTimeUs, av_rescale_q 720 libavcodec/mediacodecdec_common.c pts = av_rescale_q(pts, avctx->pkt_timebase, AV_TIME_BASE_Q); av_rescale_q 112 libavcodec/mfenc.c return av_rescale_q(av_pts, mf_get_tb(avctx), MF_TIMEBASE); av_rescale_q 124 libavcodec/mfenc.c return av_rescale_q(stime, MF_TIMEBASE, mf_get_tb(avctx)); av_rescale_q 109 libavcodec/mpeg4video_parser.c s1->pts = av_rescale_q(s->time, (AVRational){1, s->avctx->time_base.den}, (AVRational){1, 1200000}); av_rescale_q 801 libavcodec/omx.c buffer->nTimeStamp = to_omx_ticks(av_rescale_q(frame->pts, avctx->time_base, AV_TIME_BASE_Q)); av_rescale_q 901 libavcodec/omx.c pkt->pts = av_rescale_q(from_omx_ticks(buffer->nTimeStamp), AV_TIME_BASE_Q, avctx->time_base); av_rescale_q 104 libavcodec/pcm_rechunk_bsf.c return av_rescale_q(s->n + 1, sr, s->frame_rate) - av_rescale_q(s->n, sr, s->frame_rate); av_rescale_q 1374 libavcodec/qsvenc.c qf->surface.Data.TimeStamp = av_rescale_q(frame->pts, q->avctx->time_base, (AVRational){1, 90000}); av_rescale_q 1549 libavcodec/qsvenc.c new_pkt.dts = av_rescale_q(bs->DecodeTimeStamp, (AVRational){1, 90000}, avctx->time_base); av_rescale_q 1550 libavcodec/qsvenc.c new_pkt.pts = av_rescale_q(bs->TimeStamp, (AVRational){1, 90000}, avctx->time_base); av_rescale_q 69 libavcodec/v4l2_buffers.c v4l2_pts = av_rescale_q(pts, v4l2_get_timebase(out), v4l2_timebase); av_rescale_q 82 libavcodec/v4l2_buffers.c return av_rescale_q(v4l2_pts, v4l2_timebase, v4l2_get_timebase(avbuf)); av_rescale_q 73 libavcodec/xsubdec.c packet_time = av_rescale_q(avpkt->pts, AV_TIME_BASE_Q, (AVRational){1, 1000}); av_rescale_q 183 libavdevice/caca.c caca_set_display_time(c->display, av_rescale_q(1, st->codec->time_base, AV_TIME_BASE_Q)); av_rescale_q 668 libavdevice/decklink_dec.cpp pts = av_rescale_q(wallclock, timebase, time_base); av_rescale_q 670 libavdevice/decklink_dec.cpp pts = av_rescale_q(abs_wallclock, timebase, time_base); av_rescale_q 400 libavdevice/kmsgrab.c ctx->frame_delay = av_rescale_q(1, (AVRational) { ctx->framerate.den, av_rescale_q 642 libavdevice/pulse_audio_enc.c s->timestamp += av_rescale_q(samples, r, st->time_base); av_rescale_q 456 libavdevice/v4l2.c int64_t period = av_rescale_q(1, tb, ctx->streams[0]->avg_frame_rate); av_rescale_q 581 libavdevice/xcbgrab.c c->frame_duration = av_rescale_q(1, c->time_base, AV_TIME_BASE_Q); av_rescale_q 601 libavfilter/af_adeclick.c s->pts += av_rescale_q(s->hop_size, (AVRational){1, outlink->sample_rate}, outlink->time_base); av_rescale_q 244 libavfilter/af_adelay.c s->next_pts += av_rescale_q(frame->nb_samples, (AVRational){1, inlink->sample_rate}, inlink->time_base); av_rescale_q 275 libavfilter/af_adelay.c s->next_pts += av_rescale_q(nb_samples, (AVRational){1, outlink->sample_rate}, outlink->time_base); av_rescale_q 295 libavfilter/af_aecho.c s->next_pts = frame->pts + av_rescale_q(frame->nb_samples, (AVRational){1, inlink->sample_rate}, inlink->time_base); av_rescale_q 324 libavfilter/af_aecho.c s->next_pts += av_rescale_q(nb_samples, (AVRational){1, outlink->sample_rate}, outlink->time_base); av_rescale_q 288 libavfilter/af_afade.c int64_t cur_sample = av_rescale_q(buf->pts, inlink->time_base, (AVRational){1, inlink->sample_rate}); av_rescale_q 459 libavfilter/af_afade.c s->pts += av_rescale_q(in->nb_samples, av_rescale_q 484 libavfilter/af_afade.c s->pts += av_rescale_q(in->nb_samples, av_rescale_q 511 libavfilter/af_afade.c s->pts += av_rescale_q(s->nb_samples, av_rescale_q 531 libavfilter/af_afade.c s->pts += av_rescale_q(s->nb_samples, av_rescale_q 551 libavfilter/af_afade.c s->pts += av_rescale_q(s->nb_samples, av_rescale_q 1264 libavfilter/af_afftdn.c s->pts += av_rescale_q(s->sample_advance, (AVRational){1, outlink->sample_rate}, outlink->time_base); av_rescale_q 323 libavfilter/af_afftfilt.c s->pts += av_rescale_q(s->hop_size, (AVRational){1, outlink->sample_rate}, outlink->time_base); av_rescale_q 228 libavfilter/af_afir.c s->pts += av_rescale_q(out->nb_samples, (AVRational){1, outlink->sample_rate}, outlink->time_base); av_rescale_q 670 libavfilter/af_afir.c int64_t new_pts = av_rescale_q(s->pts, ctx->inputs[0]->time_base, ctx->outputs[1]->time_base); av_rescale_q 321 libavfilter/af_agate.c s->pts += av_rescale_q(nb_samples, (AVRational){1, ctx->outputs[0]->sample_rate}, ctx->outputs[0]->time_base); av_rescale_q 1110 libavfilter/af_aiir.c int64_t new_pts = av_rescale_q(out->pts, ctx->inputs[0]->time_base, outlink->time_base); av_rescale_q 437 libavfilter/af_amix.c int64_t pts = av_rescale_q(buf->pts, inlink->time_base, av_rescale_q 739 libavfilter/af_anequalizer.c av_rescale_q(buf->nb_samples, (AVRational){ 1, inlink->sample_rate }, av_rescale_q 301 libavfilter/af_anlmdn.c s->pts += av_rescale_q(s->offset, (AVRational){1, outlink->sample_rate}, outlink->time_base); av_rescale_q 86 libavfilter/af_apad.c s->next_pts = frame->pts + av_rescale_q(frame->nb_samples, (AVRational){1, inlink->sample_rate}, inlink->time_base); av_rescale_q 129 libavfilter/af_apad.c s->next_pts += av_rescale_q(n_out, (AVRational){1, outlink->sample_rate}, outlink->time_base); av_rescale_q 1062 libavfilter/af_atempo.c av_rescale_q(atempo->nsamples_out, av_rescale_q 1091 libavfilter/af_atempo.c atempo->start_pts = av_rescale_q(src_buffer->pts, av_rescale_q 285 libavfilter/af_chorus.c s->next_pts = frame->pts + av_rescale_q(frame->nb_samples, (AVRational){1, inlink->sample_rate}, inlink->time_base); av_rescale_q 317 libavfilter/af_chorus.c s->next_pts += av_rescale_q(nb_samples, (AVRational){1, outlink->sample_rate}, outlink->time_base); av_rescale_q 264 libavfilter/af_compand.c s->pts += av_rescale_q(nb_samples - i, av_rescale_q 306 libavfilter/af_compand.c s->pts += av_rescale_q(frame->nb_samples, av_rescale_q 872 libavfilter/af_firequalizer.c s->next_pts = frame->pts + av_rescale_q(frame->nb_samples, av_make_q(1, inlink->sample_rate), inlink->time_base); av_rescale_q 874 libavfilter/af_firequalizer.c frame->pts -= av_rescale_q(s->fir_len/2, av_make_q(1, inlink->sample_rate), inlink->time_base); av_rescale_q 261 libavfilter/af_resample.c s->next_pts = av_rescale_q(in->pts, inlink->time_base, av_rescale_q 282 libavfilter/af_resample.c out->pts = av_rescale_q(in->pts, inlink->time_base, av_rescale_q 143 libavfilter/af_rubberband.c out->pts = s->first_pts + av_rescale_q(s->nb_samples_out, av_rescale_q 274 libavfilter/af_sidechaincompress.c s->pts += av_rescale_q(nb_samples, (AVRational){1, ctx->outputs[0]->sample_rate}, ctx->outputs[0]->time_base); av_rescale_q 87 libavfilter/af_silencedetect.c s->start[channel] = insamples->pts + av_rescale_q(current_sample / s->channels + 1 - nb_samples_notify * s->independent_channels / s->channels, av_rescale_q 99 libavfilter/af_silencedetect.c int64_t end_pts = insamples ? insamples->pts + av_rescale_q(current_sample / s->channels, av_rescale_q 189 libavfilter/af_silencedetect.c s->frame_end = insamples->pts + av_rescale_q(insamples->nb_samples, av_rescale_q 276 libavfilter/af_silenceremove.c s->next_pts += av_rescale_q(out->nb_samples, av_rescale_q 313 libavfilter/af_silenceremove.c s->next_pts += av_rescale_q(silence->nb_samples, av_rescale_q 425 libavfilter/af_silenceremove.c s->next_pts += av_rescale_q(out->nb_samples, av_rescale_q 529 libavfilter/af_silenceremove.c s->next_pts += av_rescale_q(out->nb_samples, av_rescale_q 555 libavfilter/af_silenceremove.c s->next_pts += av_rescale_q(out->nb_samples, av_rescale_q 601 libavfilter/af_silenceremove.c s->next_pts += av_rescale_q(frame->nb_samples, av_rescale_q 1604 libavfilter/af_surround.c s->pts += av_rescale_q(out->nb_samples, (AVRational){1, outlink->sample_rate}, outlink->time_base); av_rescale_q 182 libavfilter/avf_concat.c buf->pts = av_rescale_q(buf->pts, inlink->time_base, outlink->time_base); av_rescale_q 188 libavfilter/avf_concat.c in->pts += av_rescale_q(buf->nb_samples, av_rescale_q 254 libavfilter/avf_concat.c nb_samples = av_rescale_q(seg_delta - cat->in[in_no].pts, av_rescale_q 264 libavfilter/avf_concat.c buf->pts = base_pts + av_rescale_q(sent, rate_tb, outlink->time_base); av_rescale_q 1527 libavfilter/avf_showcqt.c int64_t pts = av_rescale_q(insamples->pts, inlink->time_base, av_make_q(1, inlink->sample_rate)); av_rescale_q 1529 libavfilter/avf_showcqt.c pts = av_rescale_q(pts, av_make_q(1, inlink->sample_rate), outlink->time_base); av_rescale_q 276 libavfilter/avf_showspatial.c outpicref->pts = av_rescale_q(insamples->pts, inlink->time_base, outlink->time_base); av_rescale_q 1359 libavfilter/avf_showspectrum.c outpicref->pts = av_rescale_q(insamples->pts, inlink->time_base, outlink->time_base); av_rescale_q 420 libavfilter/avf_showwaves.c showwaves->n = FFMAX(1, av_rescale_q(inlink->sample_rate, av_make_q(1, showwaves->w), showwaves->rate)); av_rescale_q 648 libavfilter/avf_showwaves.c out->pts = in->pts + av_rescale_q((p - (int16_t *)in->data[0]) / inlink->channels, av_rescale_q 439 libavfilter/avfilter.c r = FFMIN(r, av_rescale_q(ctx->inputs[i]->current_pts, ctx->inputs[i]->time_base, link_time_base)); av_rescale_q 444 libavfilter/avfilter.c r = FFMIN(r, av_rescale_q(ctx->inputs[i]->status_in_pts, ctx->inputs[i]->time_base, link_time_base)); av_rescale_q 533 libavfilter/avfilter.c link->current_pts_us = av_rescale_q(pts, link->time_base, AV_TIME_BASE_Q); av_rescale_q 46 libavfilter/f_cue.c int64_t pts = av_rescale_q(frame->pts, inlink->time_base, AV_TIME_BASE_Q); av_rescale_q 64 libavfilter/f_cue.c pts = av_rescale_q(frame->pts, inlink->time_base, AV_TIME_BASE_Q); av_rescale_q 325 libavfilter/f_drawgraph.c out_pts = av_rescale_q(in_pts, inlink->time_base, outlink->time_base); av_rescale_q 680 libavfilter/f_ebur128.c av_rescale_q(idx_insample, (AVRational){ 1, inlink->sample_rate }, av_rescale_q 331 libavfilter/f_graphmonitor.c pts = av_rescale_q(pts, inlink->time_base, outlink->time_base); av_rescale_q 98 libavfilter/f_interleave.c q_pts = av_rescale_q(frame->pts, ctx->inputs[i]->time_base, AV_TIME_BASE_Q); av_rescale_q 110 libavfilter/f_loop.c s->pts += av_rescale_q(out->nb_samples, (AVRational){1, outlink->sample_rate}, outlink->time_base); av_rescale_q 149 libavfilter/f_loop.c s->pts += av_rescale_q(s->start - s->ignored_samples, (AVRational){1, outlink->sample_rate}, outlink->time_base); av_rescale_q 162 libavfilter/f_loop.c s->pts += av_rescale_q(ret, (AVRational){1, outlink->sample_rate}, outlink->time_base); av_rescale_q 173 libavfilter/f_loop.c s->pts += av_rescale_q(frame->nb_samples, (AVRational){1, outlink->sample_rate}, outlink->time_base); av_rescale_q 199 libavfilter/f_loop.c s->pts += av_rescale_q(nb_samples, (AVRational){1, outlink->sample_rate}, outlink->time_base); av_rescale_q 338 libavfilter/f_loop.c duration = av_rescale_q(1, av_inv_q(outlink->frame_rate), outlink->time_base); av_rescale_q 375 libavfilter/f_loop.c duration = av_rescale_q(1, av_inv_q(outlink->frame_rate), outlink->time_base); av_rescale_q 41 libavfilter/f_realtime.c int64_t pts = av_rescale_q(frame->pts, inlink->time_base, AV_TIME_BASE_Q) / s->speed; av_rescale_q 347 libavfilter/f_select.c select->var_values[VAR_CONCATDEC_SELECT] = get_concatdec_select(frame, av_rescale_q(frame->pts, inlink->time_base, AV_TIME_BASE_Q)); av_rescale_q 491 libavfilter/f_sendcmd.c ts = av_rescale_q(ref->pts, inlink->time_base, AV_TIME_BASE_Q); av_rescale_q 77 libavfilter/f_streamselect.c out->pts = av_rescale_q(s->fs.pts, s->fs.time_base, ctx->outputs[i]->time_base); av_rescale_q 124 libavfilter/fifo.c frame->pts += av_rescale_q(offset, (AVRational){1, link->sample_rate}, av_rescale_q 142 libavfilter/framequeue.c b->frame->pts += av_rescale_q(samples, av_make_q(1, b->frame->sample_rate), time_base); av_rescale_q 227 libavfilter/framesync.c pts = av_rescale_q(frame->pts, fs->in[in].time_base, fs->time_base); av_rescale_q 381 libavfilter/framesync.c mainpic->pts = av_rescale_q(fs->pts, fs->time_base, ctx->outputs[0]->time_base); av_rescale_q 332 libavfilter/qsvvpp.c qsv_frame->surface->Data.TimeStamp = av_rescale_q(qsv_frame->frame->pts, av_rescale_q 727 libavfilter/qsvvpp.c out_frame->frame->pts = av_rescale_q(out_frame->surface->Data.TimeStamp, av_rescale_q 114 libavfilter/settb.c new_pts = av_rescale_q(orig_pts, inlink->time_base, outlink->time_base); av_rescale_q 294 libavfilter/src_movie.c av_rescale_q(movie->discontinuity_threshold, AV_TIME_BASE_Q, st->time_base); av_rescale_q 90 libavfilter/trim.c int64_t start_pts = av_rescale_q(s->start_time, AV_TIME_BASE_Q, tb); av_rescale_q 95 libavfilter/trim.c int64_t end_pts = av_rescale_q(s->end_time, AV_TIME_BASE_Q, tb); av_rescale_q 100 libavfilter/trim.c s->duration_tb = av_rescale_q(s->duration, AV_TIME_BASE_Q, tb); av_rescale_q 237 libavfilter/trim.c pts = av_rescale_q(frame->pts, inlink->time_base, av_rescale_q 318 libavfilter/trim.c out->pts += av_rescale_q(start_sample, (AVRational){ 1, out->sample_rate }, av_rescale_q 903 libavfilter/vf_bm3d.c out->pts = av_rescale_q(src->pts, s->fs.time_base, outlink->time_base); av_rescale_q 228 libavfilter/vf_decimate.c frame->pts = av_rescale_q(outlink->frame_count_in, dm->ts_unit, (AVRational){1,1}) + av_rescale_q 439 libavfilter/vf_deinterlace_qsv.c qf->surface.Data.TimeStamp = av_rescale_q(qf->frame->pts, av_rescale_q 510 libavfilter/vf_deinterlace_qsv.c out->pts = av_rescale_q(out->pts, inlink->time_base, outlink->time_base); av_rescale_q 1438 libavfilter/vf_deshake_opencl.c duration = av_rescale_q(1, av_inv_q(outlink->frame_rate), outlink->time_base); av_rescale_q 268 libavfilter/vf_displace.c out->pts = av_rescale_q(s->fs.pts, s->fs.time_base, outlink->time_base); av_rescale_q 284 libavfilter/vf_framepack.c s->input_views[i]->pts = i == 0 ? pts * 2 : pts * 2 + av_rescale_q(1, av_inv_q(outlink->frame_rate), outlink->time_base); av_rescale_q 167 libavfilter/vf_framerate.c work_pts = s->start_pts + av_rescale_q(s->n, av_inv_q(s->dest_frame_rate), s->dest_time_base); av_rescale_q 335 libavfilter/vf_framerate.c pts = av_rescale_q(inpicref->pts, s->srce_time_base, s->dest_time_base); av_rescale_q 174 libavfilter/vf_freezedetect.c duration = inlink->frame_rate.num > 0 ? av_rescale_q(s->n - s->reference_n, av_inv_q(inlink->frame_rate), AV_TIME_BASE_Q) : 0; av_rescale_q 176 libavfilter/vf_freezedetect.c duration = av_rescale_q(frame->pts - s->reference_frame->pts, inlink->time_base, AV_TIME_BASE_Q); av_rescale_q 462 libavfilter/vf_frei0r.c s->update(s->instance, av_rescale_q(frame->pts, s->time_base, (AVRational){1,1000}), av_rescale_q 135 libavfilter/vf_hysteresis.c out->pts = av_rescale_q(s->fs.pts, s->fs.time_base, outlink->time_base); av_rescale_q 321 libavfilter/vf_lut2.c out->pts = av_rescale_q(s->fs.pts, s->fs.time_base, outlink->time_base); av_rescale_q 165 libavfilter/vf_maskedclamp.c out->pts = av_rescale_q(s->fs.pts, s->fs.time_base, outlink->time_base); av_rescale_q 140 libavfilter/vf_maskedmerge.c out->pts = av_rescale_q(s->fs.pts, s->fs.time_base, outlink->time_base); av_rescale_q 227 libavfilter/vf_maskedminmax.c out->pts = av_rescale_q(s->fs.pts, s->fs.time_base, outlink->time_base); av_rescale_q 197 libavfilter/vf_maskedthreshold.c out->pts = av_rescale_q(s->fs.pts, s->fs.time_base, outlink->time_base); av_rescale_q 153 libavfilter/vf_mergeplanes.c out->pts = av_rescale_q(s->fs.pts, s->fs.time_base, outlink->time_base); av_rescale_q 130 libavfilter/vf_midequalizer.c out->pts = av_rescale_q(s->fs.pts, s->fs.time_base, outlink->time_base); av_rescale_q 1176 libavfilter/vf_minterpolate.c mi_ctx->out_pts = av_rescale_q(avf_in->pts, inlink->time_base, outlink->time_base); av_rescale_q 210 libavfilter/vf_mix.c out->pts = av_rescale_q(s->fs.pts, s->fs.time_base, outlink->time_base); av_rescale_q 315 libavfilter/vf_overlay_qsv.c frame->pts = av_rescale_q(s->fs.pts, av_rescale_q 546 libavfilter/vf_premultiply.c out->pts = av_rescale_q(base->pts, s->fs.time_base, outlink->time_base); av_rescale_q 317 libavfilter/vf_remap.c out->pts = av_rescale_q(s->fs.pts, s->fs.time_base, outlink->time_base); av_rescale_q 81 libavfilter/vf_repeatfields.c f->pts = pts + av_rescale_q(fields, (AVRational){1001, 60000}, link->time_base); av_rescale_q 178 libavfilter/vf_stack.c out->pts = av_rescale_q(s->fs.pts, s->fs.time_base, outlink->time_base); av_rescale_q 461 libavfilter/vf_subtitles.c const int64_t start_time = av_rescale_q(sub.pts, AV_TIME_BASE_Q, av_make_q(1, 1000)); av_rescale_q 151 libavfilter/vf_threshold.c out->pts = av_rescale_q(s->fs.pts, s->fs.time_base, outlink->time_base); av_rescale_q 484 libavfilter/vf_tinterlace.c out->pts = av_rescale_q(out->pts, tinterlace->preout_time_base, outlink->time_base); av_rescale_q 518 libavfilter/vf_tinterlace.c out->pts = av_rescale_q(out->pts, tinterlace->preout_time_base, outlink->time_base); av_rescale_q 91 libavfilter/vf_tpad.c s->pts += av_rescale_q(1, av_inv_q(outlink->frame_rate), outlink->time_base); av_rescale_q 106 libavfilter/vf_tpad.c s->pts += av_rescale_q(1, av_inv_q(outlink->frame_rate), outlink->time_base); av_rescale_q 156 libavfilter/vf_tpad.c s->pts += av_rescale_q(1, av_inv_q(outlink->frame_rate), outlink->time_base); av_rescale_q 177 libavfilter/vf_tpad.c s->pad_start = av_rescale_q(s->start_duration, inlink->frame_rate, av_inv_q(AV_TIME_BASE_Q)); av_rescale_q 179 libavfilter/vf_tpad.c s->pad_stop = av_rescale_q(s->stop_duration, inlink->frame_rate, av_inv_q(AV_TIME_BASE_Q)); av_rescale_q 101 libavfilter/vf_untile.c s->dpts = av_rescale_q(1, dt, outlink->time_base); av_rescale_q 122 libavfilter/vf_untile.c s->pts = av_rescale_q(s->frame->pts, inlink->time_base, outlink->time_base); av_rescale_q 482 libavfilter/vf_vpp_qsv.c picref->pts = av_rescale_q(picref->pts, inlink->time_base, outlink->time_base); av_rescale_q 1387 libavfilter/vf_xfade.c s->duration_pts = av_rescale_q(s->duration, AV_TIME_BASE_Q, outlink->time_base); av_rescale_q 1389 libavfilter/vf_xfade.c s->offset_pts = av_rescale_q(s->offset, AV_TIME_BASE_Q, outlink->time_base); av_rescale_q 252 libavfilter/vf_xfade_opencl.c ctx->duration_pts = av_rescale_q(ctx->duration, AV_TIME_BASE_Q, outlink->time_base); av_rescale_q 254 libavfilter/vf_xfade_opencl.c ctx->offset_pts = av_rescale_q(ctx->offset, AV_TIME_BASE_Q, outlink->time_base); av_rescale_q 250 libavfilter/vf_xmedian.c out->pts = av_rescale_q(s->fs.pts, s->fs.time_base, outlink->time_base); av_rescale_q 266 libavfilter/vsrc_mptestsrc.c av_rescale_q(test->duration, AV_TIME_BASE_Q, av_inv_q(test->frame_rate)) : -1; av_rescale_q 147 libavfilter/vsrc_testsrc.c av_rescale_q(test->pts, test->time_base, AV_TIME_BASE_Q) >= test->duration) av_rescale_q 762 libavfilter/vsrc_testsrc.c y0 = av_rescale_q(s->pts, s->time_base, av_make_q(2, s->h - 16)); av_rescale_q 763 libavfilter/vsrc_testsrc.c g0 = av_rescale_q(s->pts, s->time_base, av_make_q(1, 128)); av_rescale_q 789 libavfilter/vsrc_testsrc.c pos = av_rescale_q(s->pts, s->time_base, av_make_q(64 >> (c << 1), cycle)) % cycle; av_rescale_q 822 libavfilter/vsrc_testsrc.c size = av_rescale_q(s->pts, s->time_base, av_make_q(4, cycle)); av_rescale_q 874 libavfilter/vsrc_testsrc.c unsigned x = av_rescale_q(s->pts, s->time_base, av_make_q(233, 55 * w)) % (w << 1); av_rescale_q 875 libavfilter/vsrc_testsrc.c unsigned y = av_rescale_q(s->pts, s->time_base, av_make_q(233, 89 * h)) % (h << 1); av_rescale_q 892 libavfilter/vsrc_testsrc.c time = av_rescale_q(s->pts, s->time_base, av_make_q(1, 1000)) % 86400000; av_rescale_q 271 libavformat/apngdec.c ctx->pkt_duration = av_rescale_q(delay_num, av_rescale_q 357 libavformat/asfenc.c int64_t pres_time = av_rescale_q(c->start, c->time_base, scale); av_rescale_q 1139 libavformat/avidec.c next_ts = av_rescale_q(next_ast->frame_offset, next_st->time_base, av_rescale_q 1146 libavformat/avidec.c ts = av_rescale_q(ast->sub_pkt.dts, st->time_base, AV_TIME_BASE_Q); av_rescale_q 1354 libavformat/avidec.c ts = av_rescale_q(ts, st->time_base, av_rescale_q 1528 libavformat/avidec.c int64_t dts= av_rescale_q(pkt->dts, st->time_base, AV_TIME_BASE_Q); av_rescale_q 1658 libavformat/avidec.c dts = av_rescale_q(st->index_entries[idx[i]].timestamp / av_rescale_q 1671 libavformat/avidec.c dts = av_rescale_q(st->index_entries[idx[i] - 1].timestamp / av_rescale_q 1776 libavformat/avidec.c int64_t ts2 = av_rescale_q(timestamp, st->time_base, st2->time_base); av_rescale_q 1860 libavformat/avidec.c av_rescale_q(timestamp, av_rescale_q 1881 libavformat/avidec.c av_rescale_q(timestamp, st->time_base, st2->time_base) * FFMAX(ast2->sample_size, 1), av_rescale_q 297 libavformat/avienc.c int64_t stream_duration = av_rescale_q(st->duration, st->time_base, AV_TIME_BASE_Q); av_rescale_q 730 libavformat/avisynth.c samples = av_rescale_q(avs->curr_frame, samplerate, fps) - av_rescale_q 733 libavformat/avisynth.c samples = av_rescale_q(1, samplerate, fps); av_rescale_q 858 libavformat/avisynth.c avs->curr_sample = av_rescale_q(timestamp, samplerate, fps); av_rescale_q 864 libavformat/avisynth.c avs->curr_frame = av_rescale_q(timestamp, fps, samplerate); av_rescale_q 865 libavformat/avisynth.c avs->curr_sample = av_rescale_q(avs->curr_frame, samplerate, fps); av_rescale_q 618 libavformat/concatdec.c delta = av_rescale_q(cat->cur_file->start_time - cat->cur_file->file_inpoint, av_rescale_q 642 libavformat/concatdec.c int64_t next_dts = av_rescale_q(st->cur_dts, st->time_base, AV_TIME_BASE_Q); av_rescale_q 655 libavformat/concatdec.c *ts = av_rescale_q (* ts, tb_in, tb_out); av_rescale_q 1225 libavformat/dashenc.c int64_t start_time = av_rescale_q(os->segments[start_index]->time, s->streams[0]->time_base, AV_TIME_BASE_Q); av_rescale_q 1899 libavformat/dashenc.c int64_t pts_diff = av_rescale_q(c->streams[stream].last_pts - av_rescale_q 1951 libavformat/dashenc.c duration = av_rescale_q(os->max_pts - os->start_pts, st->time_base, AV_TIME_BASE_Q); av_rescale_q 2106 libavformat/dashenc.c frame_duration = av_rescale_q(pkt->duration, st->time_base, AV_TIME_BASE_Q); av_rescale_q 2140 libavformat/dashenc.c c->last_duration = av_rescale_q(pkt->pts - os->start_pts, av_rescale_q 2143 libavformat/dashenc.c c->total_duration = av_rescale_q(pkt->pts - os->first_pts, av_rescale_q 2193 libavformat/dashenc.c int64_t frag_duration = av_rescale_q(os->total_pkt_duration, st->time_base, av_rescale_q 2203 libavformat/dashenc.c os->gop_size = os->last_duration + av_rescale_q(os->total_pkt_duration, st->time_base, AV_TIME_BASE_Q); av_rescale_q 2271 libavformat/dashenc.c c->last_duration = av_rescale_q(os->max_pts - os->start_pts, av_rescale_q 2274 libavformat/dashenc.c c->total_duration = av_rescale_q(os->max_pts - os->first_pts, av_rescale_q 300 libavformat/dv.c par->bit_rate = av_rescale_q(c->sys->frame_size, av_rescale_q 441 libavformat/dv.c c->abytes = av_rescale_q(c->frames, c->sys->time_base, av_rescale_q 538 libavformat/dv.c s->bit_rate = av_rescale_q(c->dv_demux->sys->frame_size, av_rescale_q 206 libavformat/ffmetadec.c s->duration = av_rescale_q(s->chapters[s->nb_chapters - 1]->end, av_rescale_q 316 libavformat/fifo.c time_since_recovery = av_rescale_q(pkt->pts - ctx->last_recovery_ts, av_rescale_q 2090 libavformat/hls.c av_rescale_q(pls->id3_offset, av_rescale_q 2104 libavformat/hls.c pls->pkt.duration = av_rescale_q(pls->pkt.duration, av_rescale_q 2122 libavformat/hls.c int64_t scaled_ts_a = av_rescale_q(ts_a, get_timebase(pls_a), MPEG_TIME_BASE_Q); av_rescale_q 2123 libavformat/hls.c int64_t scaled_ts_b = av_rescale_q(ts_b, get_timebase(pls_b), MPEG_TIME_BASE_Q); av_rescale_q 2159 libavformat/hls.c c->first_timestamp = av_rescale_q(pls->pkt.dts, av_rescale_q 2247 libavformat/hls.c c->cur_timestamp = av_rescale_q(pkt->dts, av_rescale_q 303 libavformat/id3v2enc.c start = av_rescale_q(ch->start, ch->time_base, time_base); av_rescale_q 304 libavformat/id3v2enc.c end = av_rescale_q(ch->end, ch->time_base, time_base); av_rescale_q 2684 libavformat/matroskadec.c track->codec_delay_in_track_tb = av_rescale_q(track->codec_delay, av_rescale_q 2802 libavformat/matroskadec.c st->codecpar->initial_padding = av_rescale_q(track->codec_delay, av_rescale_q 2808 libavformat/matroskadec.c st->codecpar->seek_preroll = av_rescale_q(track->seek_preroll, av_rescale_q 3494 libavformat/matroskadec.c discard_padding = av_rescale_q(discard_padding, av_rescale_q 1304 libavformat/matroskaenc.c int64_t codecdelay = av_rescale_q(par->initial_padding, av_rescale_q 1646 libavformat/matroskaenc.c int64_t chapterstart = av_rescale_q(c->start, c->time_base, scale); av_rescale_q 1647 libavformat/matroskaenc.c int64_t chapterend = av_rescale_q(c->end, c->time_base, scale); av_rescale_q 2059 libavformat/matroskaenc.c discard_padding = av_rescale_q(AV_RL32(side_data + 4), av_rescale_q 2413 libavformat/matroskaenc.c av_rescale_q(pkt->dts, s->streams[pkt->stream_index]->time_base, AV_TIME_BASE_Q), av_rescale_q 5096 libavformat/mov.c timestamp = av_rescale_q(pts, timescale, st->time_base); av_rescale_q 6759 libavformat/mov.c st->codecpar->seek_preroll = av_rescale_q(OPUS_SEEK_PREROLL_MS, av_rescale_q 8103 libavformat/mov.c timestamp = av_rescale_q(seek_timestamp, s->streams[stream_index]->time_base, st->time_base); av_rescale_q 2461 libavformat/movenc.c int roll_samples = av_rescale_q(OPUS_SEEK_PREROLL_MS, av_rescale_q 3843 libavformat/movenc.c avio_wb64(pb, av_rescale_q(c->start, c->time_base, (AVRational){1,10000000})); av_rescale_q 4724 libavformat/movenc.c pts_us = av_rescale_q(first_track->cluster[0].pts, av_rescale_q 5799 libavformat/movenc.c frag_duration = av_rescale_q(pkt->dts - trk->cluster[0].dts, av_rescale_q 6022 libavformat/movenc.c int64_t end = av_rescale_q(c->end, c->time_base, (AVRational){1,MOV_TIMESCALE}); av_rescale_q 6023 libavformat/movenc.c pkt.pts = pkt.dts = av_rescale_q(c->start, c->time_base, (AVRational){1,MOV_TIMESCALE}); av_rescale_q 202 libavformat/mp3dec.c read_xing_toc(s, mp3->header_filesize, av_rescale_q(mp3->frames, av_rescale_q 264 libavformat/mp3dec.c st->start_time = av_rescale_q(st->start_skip_samples, av_rescale_q 352 libavformat/mp3dec.c st->duration = av_rescale_q(mp3->frames, (AVRational){spf, c.sample_rate}, av_rescale_q 844 libavformat/mpeg.c timestamp = av_rescale_q(timestamp, av_make_q(1, 1000), st->time_base); av_rescale_q 1006 libavformat/mpeg.c ts = av_rescale_q(ts, AV_TIME_BASE_Q, time_base); av_rescale_q 1723 libavformat/mpegtsenc.c pkt2.dts = av_rescale_q(pkt->dts, st->time_base, ts_st->amux->streams[0]->time_base); av_rescale_q 671 libavformat/mux.c int64_t offset = av_rescale_q(s->output_ts_offset, AV_TIME_BASE_Q, st->time_base); av_rescale_q 898 libavformat/mux.c ts = av_rescale_q(pkt ->dts, st ->time_base, AV_TIME_BASE_Q) - preload; av_rescale_q 899 libavformat/mux.c ts2= av_rescale_q(next->dts, st2->time_base, AV_TIME_BASE_Q) - preload2; av_rescale_q 948 libavformat/mux.c int64_t top_dts = av_rescale_q(top_pkt->dts, av_rescale_q 959 libavformat/mux.c last_dts = av_rescale_q(last->pkt.dts, av_rescale_q 980 libavformat/mux.c s->internal->shortest_end = av_rescale_q(top_pkt->dts, av_rescale_q 989 libavformat/mux.c int64_t top_dts = av_rescale_q(top_pkt->dts, av_rescale_q 1044 libavformat/mux.c offset += av_rescale_q(s->output_ts_offset, AV_TIME_BASE_Q, st->time_base); av_rescale_q 1571 libavformat/mxfdec.c edit_unit = av_rescale_q(edit_unit, index_table->segments[0]->index_edit_rate, edit_rate); av_rescale_q 1597 libavformat/mxfdec.c *edit_unit_out = av_rescale_q(edit_unit, edit_rate, s->index_edit_rate); av_rescale_q 2094 libavformat/mxfdec.c start_position = av_rescale_q(sourceclip->start_position, av_rescale_q 2502 libavformat/mxfdec.c st->duration = av_rescale_q(st->duration, av_rescale_q 3319 libavformat/mxfdec.c return av_rescale_q(edit_unit, sample_rate, track->edit_rate); av_rescale_q 3329 libavformat/mxfdec.c return av_rescale_q(edit_unit, sample_rate, track->edit_rate); av_rescale_q 3342 libavformat/mxfdec.c int64_t edit_unit = av_rescale_q(track->sample_count, st->time_base, av_inv_q(track->edit_rate)); av_rescale_q 3391 libavformat/mxfdec.c track->sample_count = mxf_compute_sample_count(mxf, st, av_rescale_q(track->sample_count, st->time_base, av_inv_q(track->edit_rate)) + 1); av_rescale_q 3630 libavformat/mxfdec.c sample_time = av_rescale_q(sample_time, st->time_base, av_rescale_q 3655 libavformat/mxfdec.c sample_time = av_rescale_q(sample_time, new_source_track->edit_rate, source_track->edit_rate); av_rescale_q 633 libavformat/nutdec.c av_rescale_q(tmp / nut->time_base_count, av_rescale_q 694 libavformat/nutdec.c s->duration = av_rescale_q(max_pts / nut->time_base_count, av_rescale_q 1035 libavformat/nutenc.c av_rescale_q(av_gettime(), AV_TIME_BASE_Q, *nus->time_base)); av_rescale_q 156 libavformat/oggenc.c next_granule = av_rescale_q(ogg_granule_to_timestamp(st2->priv_data, next->granule), av_rescale_q 158 libavformat/oggenc.c cur_granule = av_rescale_q(ogg_granule_to_timestamp(st->priv_data, page->granule), av_rescale_q 252 libavformat/oggenc.c int64_t start = av_rescale_q(page->start_granule, st->time_base, av_rescale_q 254 libavformat/oggenc.c int64_t next = av_rescale_q(ogg_granule_to_timestamp(oggstream, page->granule), av_rescale_q 653 libavformat/oggenc.c av_rescale_q(st->codecpar->initial_padding, av_rescale_q 131 libavformat/r3d.c st->duration = av_rescale_q(r3d->video_offsets_count, av_rescale_q 383 libavformat/r3d.c frame_num = av_rescale_q(sample_time, st->time_base, av_rescale_q 67 libavformat/rawvideodec.c st->codecpar->bit_rate = av_rescale_q(ctx->packet_size, av_rescale_q 291 libavformat/rl2.c av_rescale_q(timestamp, st->time_base, st2->time_base), av_rescale_q 818 libavformat/rtpdec.c uint32_t arrival_ts = av_rescale_q(received, AV_TIME_BASE_Q, av_rescale_q 293 libavformat/rtpenc.c rtp_ts = av_rescale_q(ntp_time - s->first_rtcp_ntp_time, (AVRational){1, 1000000}, av_rescale_q 138 libavformat/rtpenc_mpegts.c local_pkt.pts = av_rescale_q(pkt->pts, av_rescale_q 142 libavformat/rtpenc_mpegts.c local_pkt.dts = av_rescale_q(pkt->dts, av_rescale_q 2252 libavformat/rtsp.c rtpctx2->rtcp_ts_offset = av_rescale_q( av_rescale_q 564 libavformat/rtspdec.c av_rescale_q(reply->range_start, AV_TIME_BASE_Q, av_rescale_q 932 libavformat/rtspdec.c rt->seek_timestamp = av_rescale_q(timestamp, av_rescale_q 1473 libavformat/sbgdec.c ts = av_rescale_q(ts, AV_TIME_BASE_Q, avf->streams[0]->time_base); av_rescale_q 936 libavformat/segment.c seg->cur_entry.start_pts = av_rescale_q(pkt->pts, st->time_base, AV_TIME_BASE_Q); av_rescale_q 963 libavformat/segment.c offset = av_rescale_q(seg->initial_offset - (seg->reset_timestamps ? seg->cur_entry.start_pts : 0), av_rescale_q 95 libavformat/serdec.c st->codecpar->bit_rate = av_rescale_q(s->packet_size, av_rescale_q 540 libavformat/smoothstreamingenc.c int64_t bitrate = (int64_t) size * 8 * AV_TIME_BASE / av_rescale_q(duration, s->streams[i]->time_base, AV_TIME_BASE_Q); av_rescale_q 53 libavformat/tests/seek.c ts= av_rescale_q(ts, base, (AVRational){1, 1000000}); av_rescale_q 146 libavformat/tests/seek.c timestamp= av_rescale_q(timestamp, AV_TIME_BASE_Q, st->time_base); av_rescale_q 912 libavformat/utils.c pkt->dts = pkt->pts = av_rescale_q(av_gettime(), AV_TIME_BASE_Q, st->time_base); av_rescale_q 1159 libavformat/utils.c st->start_time = av_sat_add64(st->start_time, av_rescale_q(st->skip_samples, (AVRational){1, st->codecpar->sample_rate}, st->time_base)); av_rescale_q 1172 libavformat/utils.c st->start_time = av_sat_add64(st->start_time, av_rescale_q(st->skip_samples, (AVRational){1, st->codecpar->sample_rate}, st->time_base)); av_rescale_q 2128 libavformat/utils.c int64_t e1_pts = av_rescale_q(e1->timestamp, st1->time_base, AV_TIME_BASE_Q); av_rescale_q 2133 libavformat/utils.c int64_t e2_pts = av_rescale_q(e2->timestamp, st2->time_base, AV_TIME_BASE_Q); av_rescale_q 2561 libavformat/utils.c ts = av_rescale_q(ts, AV_TIME_BASE_Q, time_base); av_rescale_q 2652 libavformat/utils.c start_time1 = av_rescale_q(st->start_time, st->time_base, av_rescale_q 2676 libavformat/utils.c duration1 = av_rescale_q(st->duration, st->time_base, av_rescale_q 2737 libavformat/utils.c st->start_time = av_rescale_q(ic->start_time, AV_TIME_BASE_Q, av_rescale_q 2740 libavformat/utils.c st->duration = av_rescale_q(ic->duration, AV_TIME_BASE_Q, av_rescale_q 3267 libavformat/utils.c int64_t end = max_time ? av_rescale_q(max_time, AV_TIME_BASE_Q, av_rescale_q 3273 libavformat/utils.c int64_t next_start = av_rescale_q(ch1->start, ch1->time_base, av_rescale_q 3902 libavformat/utils.c t = av_rescale_q(st->info->codec_info_duration, st->time_base, AV_TIME_BASE_Q); av_rescale_q 3904 libavformat/utils.c t = FFMAX(t, av_rescale_q(st->codec_info_nb_frames, av_inv_q(st->avg_frame_rate), AV_TIME_BASE_Q)); av_rescale_q 3910 libavformat/utils.c t = FFMAX(t, av_rescale_q(st->info->fps_last_dts - st->info->fps_first_dts, st->time_base, AV_TIME_BASE_Q)); av_rescale_q 62 libavformat/v210.c st->codecpar->bit_rate = av_rescale_q(ctx->packet_size, av_rescale_q 649 libavformat/vividas.c pkt->pts = av_rescale_q(viv->audio_sample, av_make_q(1, astream->codecpar->sample_rate), astream->time_base); av_rescale_q 743 libavformat/vividas.c frame = av_rescale_q(timestamp, s->streams[0]->time_base, s->streams[stream_index]->time_base); av_rescale_q 756 libavformat/vividas.c viv->audio_sample = av_rescale_q(viv->sb_blocks[i].packet_offset, av_make_q(s->streams[1]->codecpar->sample_rate, 1), av_inv_q(s->streams[0]->time_base)); av_rescale_q 100 libavformat/vorbiscomment.c ms = av_rescale_q(chp->start, chp->time_base, av_make_q( 1, 1000)) % 1000; av_rescale_q 728 libavformat/wavdec.c smv_timestamp = av_rescale_q(timestamp, s->streams[0]->time_base, s->streams[1]->time_base); av_rescale_q 730 libavformat/wavdec.c timestamp = av_rescale_q(smv_timestamp, s->streams[1]->time_base, s->streams[0]->time_base); av_rescale_q 437 libavformat/wavenc.c number_of_samples = av_rescale_q(wav->maxpts - wav->minpts + wav->last_duration, av_rescale_q 227 libavformat/webm_chunk.c wc->duration_written += av_rescale_q(pkt->pts - wc->prev_pts, av_rescale_q 176 libavutil/mathematics.c *last = av_rescale_q(in_ts, in_tb, fs_tb) + duration; av_rescale_q 177 libavutil/mathematics.c return av_rescale_q(in_ts, in_tb, out_tb); av_rescale_q 188 libavutil/mathematics.c return av_rescale_q(this, fs_tb, out_tb); av_rescale_q 207 libavutil/mathematics.c int64_t old = av_rescale_q(ts, ts_tb, inc_tb); av_rescale_q 208 libavutil/mathematics.c int64_t old_ts = av_rescale_q(old, inc_tb, ts_tb); av_rescale_q 213 libavutil/mathematics.c return av_rescale_q(old + 1, inc_tb, ts_tb) + (ts - old_ts); av_rescale_q 151 libavutil/mathematics.h int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq) av_const; av_rescale_q 106 libavutil/tests/rational.c int exact = start + av_rescale_q(i+1, b, a); av_rescale_q 236 tools/uncoded_frame.c frame->pts = av_rescale_q(frame->pts,