Lines Matching refs:time
44 #include "libavutil/time.h"
145 double pts_drift; /* clock base minus time at which we updated the clock */
1071 /* to be more precise, we take into account the time spent since
1370 double time = av_gettime_relative() / 1000000.0;
1371 return c->pts_drift + time - (time - c->last_updated) * (1.0 - c->speed);
1375 static void set_clock_at(Clock *c, double pts, int serial, double time)
1378 c->last_updated = time;
1379 c->pts_drift = c->pts - time;
1385 double time = av_gettime_relative() / 1000000.0;
1386 set_clock_at(c, pts, serial, time);
1566 double time;
1574 time = av_gettime_relative() / 1000000.0;
1575 if (is->force_refresh || is->last_vis_time + rdftspeed < time) {
1577 is->last_vis_time = time;
1579 *remaining_time = FFMIN(*remaining_time, is->last_vis_time + rdftspeed - time);
1609 time= av_gettime_relative()/1000000.0;
1610 if (time < is->frame_timer + delay) {
1611 *remaining_time = FFMIN(is->frame_timer + delay - time, *remaining_time);
1616 if (delay > 0 && time - is->frame_timer > AV_SYNC_THRESHOLD_MAX)
1617 is->frame_timer = time;
1627 if(!is->step && (framedrop>0 || (framedrop && get_master_sync_type(is) != AV_SYNC_VIDEO_MASTER)) && time > is->frame_timer + duration){
2840 /* add the stream start time */