summaryrefslogtreecommitdiff
path: root/src/common/timing.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/timing.c')
-rw-r--r--src/common/timing.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/common/timing.c b/src/common/timing.c
index 7a91327..69c25cf 100644
--- a/src/common/timing.c
+++ b/src/common/timing.c
@@ -1,6 +1,6 @@
#include "timing.h"
-uint64_t yasl_clock_extend_ms(uint32_t ms, uint64_t now_ns)
+uint64_t yasl_private_clock_extend_ms(uint32_t ms, uint64_t now_ns)
{
uint64_t now_ms = now_ns / 1000000;
int64_t ahead = (int32_t)(ms - (uint32_t)now_ms);
@@ -9,7 +9,7 @@ uint64_t yasl_clock_extend_ms(uint32_t ms, uint64_t now_ns)
return (uint64_t)((int64_t)now_ms + ahead) * 1000000ull;
}
-void yasl_clock_presented(struct yasl_frame_clock *c, uint64_t now, bool sample)
+void yasl_private_clock_presented(struct yasl_private_frame_clock *c, uint64_t now, bool sample)
{
if (c->last_present_ns) {
double dt = (double)(now - c->last_present_ns);
@@ -17,10 +17,10 @@ void yasl_clock_presented(struct yasl_frame_clock *c, uint64_t now, bool sample)
c->refresh_ns += 0.125 * (dt - c->refresh_ns);
}
c->last_present_ns = now;
- c->source = YASL_TIMING_SUBMISSION;
+ c->source = YASL_PRIVATE_TIMING_SUBMISSION;
}
-void yasl_clock_note_resize(struct yasl_frame_clock *c, uint64_t dt_ns)
+void yasl_private_clock_note_resize(struct yasl_private_frame_clock *c, uint64_t dt_ns)
{
c->resize_count++;
c->resize_sum_ns += dt_ns;
@@ -28,8 +28,8 @@ void yasl_clock_note_resize(struct yasl_frame_clock *c, uint64_t dt_ns)
c->resize_max_ns = dt_ns;
}
-void yasl_clock_resize_stats(const struct yasl_frame_clock *c,
- struct yasl_resize_stats *out)
+void yasl_private_clock_resize_stats(const struct yasl_private_frame_clock *c,
+ struct yasl_private_resize_stats *out)
{
out->count = c->resize_count;
out->avg_us = c->resize_count
@@ -39,13 +39,13 @@ void yasl_clock_resize_stats(const struct yasl_frame_clock *c,
out->minflt = c->resize_minflt;
}
-uint64_t yasl_clock_next_present_ns(const struct yasl_frame_clock *c)
+uint64_t yasl_private_clock_next_present_ns(const struct yasl_private_frame_clock *c)
{
uint64_t next = c->last_present_ns + (uint64_t)c->refresh_ns;
return (uint64_t)-(c->last_present_ns != 0) & next;
}
-uint64_t yasl_clock_frame_timestamp_ns(struct yasl_frame_clock *c, uint64_t now)
+uint64_t yasl_private_clock_frame_timestamp_ns(struct yasl_private_frame_clock *c, uint64_t now)
{
if (!c->last_present_ns || c->refresh_ns <= 0.0) {
c->frame_time_ns = now;