MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / get_clock

Function get_clock

fftools/ffplay.c:1428–1438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1426}
1427
1428static double get_clock(Clock *c)
1429{
1430 if (*c->queue_serial != c->serial)
1431 return NAN;
1432 if (c->paused) {
1433 return c->pts;
1434 } else {
1435 double time = av_gettime_relative() / 1000000.0;
1436 return c->pts_drift + time - (time - c->last_updated) * (1.0 - c->speed);
1437 }
1438}
1439
1440static void set_clock_at(Clock *c, double pts, int serial, double time)
1441{

Callers 7

set_clock_speedFunction · 0.85
sync_clock_to_slaveFunction · 0.85
get_master_clockFunction · 0.85
stream_toggle_pauseFunction · 0.85
compute_target_delayFunction · 0.85
video_refreshFunction · 0.85
synchronize_audioFunction · 0.85

Calls 1

av_gettime_relativeFunction · 0.85

Tested by

no test coverage detected