Home
last modified time | relevance | path

Searched refs:av_rescale_q (Results 1 – 25 of 170) sorted by relevance

1234567

/third_party/ffmpeg/libavutil/
Dmathematics.c142 int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq) in av_rescale_q() function
176 *last = av_rescale_q(in_ts, in_tb, fs_tb) + duration; in av_rescale_delta()
177 return av_rescale_q(in_ts, in_tb, out_tb); in av_rescale_delta()
188 return av_rescale_q(this, fs_tb, out_tb); in av_rescale_delta()
207 int64_t old = av_rescale_q(ts, ts_tb, inc_tb); in av_add_stable()
208 int64_t old_ts = av_rescale_q(old, inc_tb, ts_tb); in av_add_stable()
213 return av_sat_add64(av_rescale_q(old + 1, inc_tb, ts_tb), ts - old_ts); in av_add_stable()
Dmathematics.h152 int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq) av_const;
/third_party/ffmpeg/libavfilter/
Dvf_tpad.c91 s->pts += av_rescale_q(1, av_inv_q(outlink->frame_rate), outlink->time_base); in activate()
106 s->pts += av_rescale_q(1, av_inv_q(outlink->frame_rate), outlink->time_base); in activate()
156 s->pts += av_rescale_q(1, av_inv_q(outlink->frame_rate), outlink->time_base); in activate()
177 … s->pad_start = av_rescale_q(s->start_duration, inlink->frame_rate, av_inv_q(AV_TIME_BASE_Q)); in config_input()
179 s->pad_stop = av_rescale_q(s->stop_duration, inlink->frame_rate, av_inv_q(AV_TIME_BASE_Q)); in config_input()
Df_loop.c110 …s->pts += av_rescale_q(out->nb_samples, (AVRational){1, outlink->sample_rate}, outlink->time_base); in push_samples()
149 …s->pts += av_rescale_q(s->start - s->ignored_samples, (AVRational){1, outlink->sample_rate}, outli… in afilter_frame()
162 s->pts += av_rescale_q(ret, (AVRational){1, outlink->sample_rate}, outlink->time_base); in afilter_frame()
173 …s->pts += av_rescale_q(frame->nb_samples, (AVRational){1, outlink->sample_rate}, outlink->time_bas… in afilter_frame()
199 … s->pts += av_rescale_q(nb_samples, (AVRational){1, outlink->sample_rate}, outlink->time_base); in arequest_frame()
338 duration = av_rescale_q(1, av_inv_q(outlink->frame_rate), outlink->time_base); in push_frame()
375 duration = av_rescale_q(1, av_inv_q(outlink->frame_rate), outlink->time_base); in filter_frame()
Dtrim.c90 int64_t start_pts = av_rescale_q(s->start_time, AV_TIME_BASE_Q, tb); in config_input()
95 int64_t end_pts = av_rescale_q(s->end_time, AV_TIME_BASE_Q, tb); in config_input()
100 s->duration_tb = av_rescale_q(s->duration, AV_TIME_BASE_Q, tb); in config_input()
237 pts = av_rescale_q(frame->pts, inlink->time_base, in atrim_filter_frame()
318 out->pts += av_rescale_q(start_sample, (AVRational){ 1, out->sample_rate }, in atrim_filter_frame()
Df_cue.c46 int64_t pts = av_rescale_q(frame->pts, inlink->time_base, AV_TIME_BASE_Q); in activate()
64 pts = av_rescale_q(frame->pts, inlink->time_base, AV_TIME_BASE_Q); in activate()
Daf_silenceremove.c276 s->next_pts += av_rescale_q(out->nb_samples, in flush()
313 s->next_pts += av_rescale_q(silence->nb_samples, in flush()
425 s->next_pts += av_rescale_q(out->nb_samples, in filter_frame()
529 s->next_pts += av_rescale_q(out->nb_samples, in filter_frame()
555 s->next_pts += av_rescale_q(out->nb_samples, in filter_frame()
601 s->next_pts += av_rescale_q(frame->nb_samples, in request_frame()
Daf_silencedetect.c87 …s->start[channel] = insamples->pts + av_rescale_q(current_sample / s->channels + 1 - nb_samples_no… in update()
99 … int64_t end_pts = insamples ? insamples->pts + av_rescale_q(current_sample / s->channels, in update()
189 s->frame_end = insamples->pts + av_rescale_q(insamples->nb_samples, in filter_frame()
Daf_afade.c299 …int64_t cur_sample = av_rescale_q(buf->pts, inlink->time_base, (AVRational){1, inlink->sample_rate… in filter_frame()
485 s->pts += av_rescale_q(in->nb_samples, in CROSSFADE_PLANAR()
510 s->pts += av_rescale_q(in->nb_samples, in CROSSFADE_PLANAR()
537 s->pts += av_rescale_q(s->nb_samples, in CROSSFADE_PLANAR()
557 s->pts += av_rescale_q(s->nb_samples, in CROSSFADE_PLANAR()
577 s->pts += av_rescale_q(s->nb_samples, in CROSSFADE_PLANAR()
Daf_apad.c86 …s->next_pts = frame->pts + av_rescale_q(frame->nb_samples, (AVRational){1, inlink->sample_rate}, i… in filter_frame()
129 … s->next_pts += av_rescale_q(n_out, (AVRational){1, outlink->sample_rate}, outlink->time_base); in request_frame()
Davf_concat.c182 buf->pts = av_rescale_q(buf->pts, inlink->time_base, outlink->time_base); in push_frame()
188 in->pts += av_rescale_q(buf->nb_samples, in push_frame()
258 nb_samples = av_rescale_q(seg_delta - cat->in[in_no].pts, in send_silence()
268 buf->pts = base_pts + av_rescale_q(sent, rate_tb, outlink->time_base); in send_silence()
Dvf_untile.c101 s->dpts = av_rescale_q(1, dt, outlink->time_base); in config_output()
122 s->pts = av_rescale_q(s->frame->pts, inlink->time_base, outlink->time_base); in activate()
Dvf_freezedetect.c174 …duration = inlink->frame_rate.num > 0 ? av_rescale_q(s->n - s->reference_n, av_inv_q(inlink->frame… in activate()
176 … duration = av_rescale_q(frame->pts - s->reference_frame->pts, inlink->time_base, AV_TIME_BASE_Q); in activate()
Df_realtime.c41 int64_t pts = av_rescale_q(frame->pts, inlink->time_base, AV_TIME_BASE_Q) / s->speed; in filter_frame()
/third_party/ffmpeg/fftools/
Dffmpeg.c252 pts = av_rescale_q(sub->pts + sub->start_display_time * 1000LL, in sub2video_update()
254 end_pts = av_rescale_q(sub->pts + sub->end_display_time * 1000LL, in sub2video_update()
297 pts2 = av_rescale_q(pts, ist->st->time_base, ist2->st->time_base) - 1; in sub2video_heartbeat()
805 pkt->duration = av_rescale_q(1, av_inv_q(ost->frame_rate), in write_packet()
881 …int64_t end = av_rescale_q(ost->sync_opts - ost->first_pts, ost->enc_ctx->time_base, AV_TIME_BASE_… in close_output_stream()
955 av_rescale_q(frame->pts, filter_tb, tb) - in adjust_frame_pts_to_encoder_tb()
956 av_rescale_q(start_time, AV_TIME_BASE_Q, tb); in adjust_frame_pts_to_encoder_tb()
962 av_rescale_q(frame->pts, filter_tb, enc->time_base) - in adjust_frame_pts_to_encoder_tb()
963 av_rescale_q(start_time, AV_TIME_BASE_Q, enc->time_base); in adjust_frame_pts_to_encoder_tb()
1104 ost->sync_opts = av_rescale_q(pts, AV_TIME_BASE_Q, enc->time_base); in do_subtitle_out()
[all …]
/third_party/gstreamer/gst_libav/ext/libav/
Dgstavutils.h81 out = av_rescale_q (pts, base, bq); in gst_ffmpeg_time_ff_to_gst()
96 out = av_rescale_q (time, bq, base); in gst_ffmpeg_time_gst_to_ff()
/third_party/ffmpeg/libavformat/tests/
Dseek.c53 ts= av_rescale_q(ts, base, (AVRational){1, 1000000}); in ts_str()
146 timestamp= av_rescale_q(timestamp, AV_TIME_BASE_Q, st->time_base); in main()
/third_party/ffmpeg/libavformat/
Dmux.c656 pkt->duration = av_rescale_q(1, av_inv_q(st->avg_frame_rate),
664 pkt->duration = av_rescale_q(frame_size,
689 int64_t offset = av_rescale_q(s->output_ts_offset, AV_TIME_BASE_Q, st->time_base);
916 ts = av_rescale_q(pkt ->dts, st ->time_base, AV_TIME_BASE_Q) - preload;
917 ts2= av_rescale_q(next->dts, st2->time_base, AV_TIME_BASE_Q) - preload2;
966 int64_t top_dts = av_rescale_q(top_pkt->dts,
977 last_dts = av_rescale_q(last->pkt.dts,
998 s->internal->shortest_end = av_rescale_q(top_pkt->dts,
1007 int64_t top_dts = av_rescale_q(top_pkt->dts,
1061 *offset += av_rescale_q(s->output_ts_offset, AV_TIME_BASE_Q, st->time_base);
Drtpenc_mpegts.c162 local_pkt->pts = av_rescale_q(pkt->pts, in rtp_mpegts_write_packet()
166 local_pkt->dts = av_rescale_q(pkt->dts, in rtp_mpegts_write_packet()
Davisynth.c737 samples = av_rescale_q(avs->curr_frame, samplerate, fps) - in avisynth_read_packet_audio()
740 samples = av_rescale_q(1, samplerate, fps); in avisynth_read_packet_audio()
865 avs->curr_sample = av_rescale_q(timestamp, samplerate, fps); in avisynth_read_seek()
871 avs->curr_frame = av_rescale_q(timestamp, fps, samplerate); in avisynth_read_seek()
872 avs->curr_sample = av_rescale_q(avs->curr_frame, samplerate, fps); in avisynth_read_seek()
Doggenc.c156 next_granule = av_rescale_q(ogg_granule_to_timestamp(st2->priv_data, next->granule), in ogg_compare_granule()
158 cur_granule = av_rescale_q(ogg_granule_to_timestamp(st->priv_data, page->granule), in ogg_compare_granule()
252 int64_t start = av_rescale_q(page->start_granule, st->time_base, in ogg_buffer_data()
254 int64_t next = av_rescale_q(ogg_granule_to_timestamp(oggstream, page->granule), in ogg_buffer_data()
653 av_rescale_q(st->codecpar->initial_padding, in ogg_write_packet_internal()
Davidec.c1173 next_ts = av_rescale_q(next_ast->frame_offset, next_st->time_base, in get_subtitle_pkt()
1180 ts = av_rescale_q(ast->sub_pkt->dts, st->time_base, AV_TIME_BASE_Q); in get_subtitle_pkt()
1388 ts = av_rescale_q(ts, st->time_base, in ni_prepare_read()
1563 int64_t dts= av_rescale_q(pkt->dts, st->time_base, AV_TIME_BASE_Q); in avi_read_packet()
1693 dts = av_rescale_q(st->index_entries[idx[i]].timestamp / in check_stream_max_drift()
1706 dts = av_rescale_q(st->index_entries[idx[i] - 1].timestamp / in check_stream_max_drift()
1815 int64_t ts2 = av_rescale_q(timestamp, st->time_base, st2->time_base); in seek_subtitle()
1899 av_rescale_q(timestamp, in avi_read_seek()
1920av_rescale_q(timestamp, st->time_base, st2->time_base) * FFMAX(ast2->sample_size, 1), in avi_read_seek()
/third_party/ffmpeg/libavcodec/
Dpcm_rechunk_bsf.c104 return av_rescale_q(s->n + 1, sr, s->frame_rate) - av_rescale_q(s->n, sr, s->frame_rate); in get_next_nb_samples()
Dlibaribb24.c326 sub->pts = av_rescale_q(pkt->pts, in libaribb24_decode()
330 av_rescale_q(subtitle_duration, in libaribb24_decode()
Davpacket.c740 pkt->pts = av_rescale_q(pkt->pts, src_tb, dst_tb); in av_packet_rescale_ts()
742 pkt->dts = av_rescale_q(pkt->dts, src_tb, dst_tb); in av_packet_rescale_ts()
744 pkt->duration = av_rescale_q(pkt->duration, src_tb, dst_tb); in av_packet_rescale_ts()
748 pkt->convergence_duration = av_rescale_q(pkt->convergence_duration, src_tb, dst_tb); in av_packet_rescale_ts()

1234567