Home
last modified time | relevance | path

Searched refs:AV_TIME_BASE (Results 1 – 25 of 62) sorted by relevance

123

/third_party/ffmpeg/libavutil/
Davutil.h254 #define AV_TIME_BASE 1000000 macro
260 #define AV_TIME_BASE_Q (AVRational){1, AV_TIME_BASE}
Dutils.c146 return (AVRational){1, AV_TIME_BASE}; in av_get_time_base_q()
/third_party/ffmpeg/tools/
Dsidxindex.c190 av_rescale_rnd(track->duration, AV_TIME_BASE, in handle_file()
218 int seconds = time / AV_TIME_BASE; in write_time()
219 int fractions = time % AV_TIME_BASE; in write_time()
222 fractions = av_rescale_rnd(fractions, pow(10, decimals), AV_TIME_BASE, round); in write_time()
Daviocat.c127 while ((av_gettime_relative() - start_time) * bps / AV_TIME_BASE < stream_pos) in main()
/third_party/ffmpeg/libavformat/
Damvenc.c127 amv->us_per_frame = av_rescale(AV_TIME_BASE, vst->time_base.num, vst->time_base.den); in amv_init()
128 amv->aframe_size = av_rescale(ast->codecpar->sample_rate, amv->us_per_frame, AV_TIME_BASE); in amv_init()
178 int32_t aus = av_rescale(AV_TIME_BASE, ast->time_base.num, ast->time_base.den); in amv_init()
397 ss = maxpts / AV_TIME_BASE; in amv_write_trailer()
Dlibopenmpt.c156 avpriv_set_pts_info(st, 64, 1, AV_TIME_BASE); in read_header_openmpt()
157 st->duration = llrint(openmpt->duration*AV_TIME_BASE); in read_header_openmpt()
217 openmpt_module_set_position_seconds(openmpt->module, (double)ts/AV_TIME_BASE); in read_seek_openmpt()
Ddump.c660 secs = duration / AV_TIME_BASE; in av_dump_format()
661 us = duration % AV_TIME_BASE; in av_dump_format()
667 (100 * us) / AV_TIME_BASE); in av_dump_format()
674 secs = llabs(ic->start_time / AV_TIME_BASE); in av_dump_format()
675 us = llabs(ic->start_time % AV_TIME_BASE); in av_dump_format()
679 (int) av_rescale(us, 1000000, AV_TIME_BASE)); in av_dump_format()
Dsbgdec.c34 #define DAY_TS ((int64_t)DAY * AV_TIME_BASE)
200 ts = av_clipd(seconds * AV_TIME_BASE, INT64_MIN/2, INT64_MAX/2); in str_to_time()
202 *rtime = av_sat_add64((hours * 3600LL + minutes * 60LL) * AV_TIME_BASE, ts); in str_to_time()
382 p->scs.opt_fade_time = v * AV_TIME_BASE / 1000; in parse_options()
813 .opt_fade_time = 60 * AV_TIME_BASE, in parse_script()
928 now *= AV_TIME_BASE; in expand_timestamps()
1326 ev1->ts_int = av_rescale(ev1->ts_int, sample_rate, AV_TIME_BASE); in generate_intervals()
1327 ev1->ts_trans = av_rescale(ev1->ts_trans, sample_rate, AV_TIME_BASE); in generate_intervals()
1328 ev1->ts_next = av_rescale(ev1->ts_next, sample_rate, AV_TIME_BASE); in generate_intervals()
1453 sbg->sample_rate, AV_TIME_BASE); in sbg_read_header()
[all …]
Dmca.c92 av_rescale(loop_start, AV_TIME_BASE, in read_header()
96 av_rescale(loop_end, AV_TIME_BASE, in read_header()
Ddashenc.c663 int timescale = c->use_timeline ? os->ctx->streams[0]->time_base.den : AV_TIME_BASE; in output_segment_list()
705 …tList timescale=\"%d\" duration=\"%"PRId64"\" startNumber=\"%d\">\n", AV_TIME_BASE, FFMIN(os->seg_… in output_segment_list()
716 …tList timescale=\"%d\" duration=\"%"PRId64"\" startNumber=\"%d\">\n", AV_TIME_BASE, FFMIN(os->seg_… in output_segment_list()
772 int seconds = time / AV_TIME_BASE; in write_time()
773 int fractions = time % AV_TIME_BASE; in write_time()
783 avio_printf(out, "%d.%dS", seconds, fractions / (AV_TIME_BASE / 10)); in write_time()
847 int average_bit_rate = os->pos * 8 * AV_TIME_BASE / c->total_duration; in write_adaptation_set()
1184 int64_t update_period = c->last_duration / AV_TIME_BASE; in write_manifest()
1192 …io_printf(out, "\tsuggestedPresentationDelay=\"PT%"PRId64"S\"\n", c->last_duration / AV_TIME_BASE); in write_manifest()
1320 stream_bitrate += os->pos * 8 * AV_TIME_BASE / c->total_duration; in write_manifest()
[all …]
Dhlsproto.c134 s->target_duration = atoi(ptr) * AV_TIME_BASE; in parse_playlist()
141 duration = atof(ptr) * AV_TIME_BASE; in parse_playlist()
Dmpegenc.c324 ctx->max_delay = AV_TIME_BASE*7/10; in mpeg_mux_init()
1010 const int64_t max_delay = av_rescale(ctx->max_delay, 90000, AV_TIME_BASE); in output_packet()
1158 preload = av_rescale(s->preload, 90000, AV_TIME_BASE); in mpeg_mux_write_packet()
1166 s->preload += av_rescale(-dts, AV_TIME_BASE, 90000); in mpeg_mux_write_packet()
1172 preload = av_rescale(s->preload, 90000, AV_TIME_BASE); in mpeg_mux_write_packet()
Dhls.c816 pls->target_duration = strtoll(ptr, NULL, 10) * AV_TIME_BASE; in parse_playlist()
876 duration = atof(ptr) * AV_TIME_BASE; in parse_playlist()
944 if (duration < 0.001 * AV_TIME_BASE) { in parse_playlist()
947 duration = 0.001 * AV_TIME_BASE; in parse_playlist()
1993 …x->max_analyze_duration = s->max_analyze_duration > 0 ? s->max_analyze_duration : 4 * AV_TIME_BASE; in hls_read_header()
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()
Dmpegtsenc.c1141 ts->first_pcr = av_rescale(s->max_delay, PCR_TIME_BASE, AV_TIME_BASE); in mpegts_init()
1147 ts->pat_period = av_rescale(ts->pat_period_us, PCR_TIME_BASE, AV_TIME_BASE); in mpegts_init()
1148 ts->sdt_period = av_rescale(ts->sdt_period_us, PCR_TIME_BASE, AV_TIME_BASE); in mpegts_init()
1306 int64_t delay = av_rescale(s->max_delay, 90000, AV_TIME_BASE); in mpegts_write_pes()
1681 const int64_t delay = av_rescale(s->max_delay, 90000, AV_TIME_BASE) * 2; in mpegts_write_packet_internal()
1682 const int64_t max_audio_delay = av_rescale(s->max_delay, 90000, AV_TIME_BASE) / 2; in mpegts_write_packet_internal()
Ddxa.c146 s->duration = av_rescale(c->frames, AV_TIME_BASE * (int64_t)num, den); in dxa_read_header()
/third_party/ffmpeg/libavformat/tests/
Dseek.c143 timestamp= (i*19362894167LL) % (duration*AV_TIME_BASE) - AV_TIME_BASE; in main()
/third_party/ffmpeg/libavfilter/
Daf_apad.c142 s->pad_len = av_rescale(s->pad_dur, outlink->sample_rate, AV_TIME_BASE); in config_output()
144 s->whole_len = av_rescale(s->whole_dur, outlink->sample_rate, AV_TIME_BASE); in config_output()
Daf_silenceremove.c218 AV_TIME_BASE); in config_input()
220 AV_TIME_BASE); in config_input()
222 AV_TIME_BASE); in config_input()
224 AV_TIME_BASE); in config_input()
Dasrc_anullsrc.c101 null->duration = av_rescale(null->duration, null->sample_rate, AV_TIME_BASE); in config_props()
Daf_anlmdn.c156 newK = av_rescale(s->pd, outlink->sample_rate, AV_TIME_BASE); in config_filter()
157 newS = av_rescale(s->rd, outlink->sample_rate, AV_TIME_BASE); in config_filter()
Daeval.c279 int64_t t = av_rescale(eval->n, AV_TIME_BASE, eval->sample_rate); in request_frame()
286 …= FFMIN(eval->nb_samples, av_rescale(eval->duration, eval->sample_rate, AV_TIME_BASE) - eval->pts); in request_frame()
Dvf_untile.c100 outlink->time_base = av_gcd_q(inlink->time_base, dt, AV_TIME_BASE / 2, AV_TIME_BASE_Q); in config_output()
Dasrc_anoisesrc.c188 s->duration = av_rescale(s->duration, s->sample_rate, AV_TIME_BASE); in config_props()
/third_party/ffmpeg/fftools/
Dffmpeg.c1827 secs = FFABS(pts) / AV_TIME_BASE; in print_report()
1828 us = FFABS(pts) % AV_TIME_BASE; in print_report()
1836 speed = t != 0.0 ? (double)pts / AV_TIME_BASE / t : -1; in print_report()
1844 hours_sign, hours, mins, secs, (100 * us) / AV_TIME_BASE); in print_report()
2366 ist->next_pts += ((int64_t)AV_TIME_BASE * decoded_frame->nb_samples) / in decode_audio()
2368 ist->next_dts += ((int64_t)AV_TIME_BASE * decoded_frame->nb_samples) / in decode_audio()
2544 1000, AV_TIME_BASE); in transcode_subtitles()
2631 …ist->dts = ist->st->avg_frame_rate.num ? - ist->dec_ctx->has_b_frames * AV_TIME_BASE / av_q2d(ist-… in process_input_packet()
2682 duration_dts = ((int64_t)AV_TIME_BASE * in process_input_packet()
2769 ist->next_dts += ((int64_t)AV_TIME_BASE * ist->dec_ctx->frame_size) / in process_input_packet()
[all …]
/third_party/ffmpeg/libavdevice/
Dv4l2.c445 ts <= now + 1 * AV_TIME_BASE && ts >= now - 10 * AV_TIME_BASE) { in init_convert_timestamp()
454 (ts <= now + 1 * AV_TIME_BASE && ts >= now - 10 * AV_TIME_BASE)) { in init_convert_timestamp()
455 AVRational tb = {AV_TIME_BASE, 1}; in init_convert_timestamp()

123