summaryrefslogtreecommitdiffstats
path: root/video/out/vo.h
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/vo.h')
-rw-r--r--video/out/vo.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/video/out/vo.h b/video/out/vo.h
index c6751c7524..36591cb00d 100644
--- a/video/out/vo.h
+++ b/video/out/vo.h
@@ -143,16 +143,13 @@ struct voctrl_playback_state {
};
// VOCTRL_PERFORMANCE_DATA
-#define PERF_SAMPLE_COUNT 256u
+#define VO_PERF_SAMPLE_COUNT 256u
struct mp_pass_perf {
// times are all in nanoseconds
uint64_t last, avg, peak;
- // this is a ring buffer, indices are relative to index and modulo
- // PERF_SAMPLE_COUNT
- uint64_t *samples;
- int count;
- int index;
+ uint64_t samples[VO_PERF_SAMPLE_COUNT];
+ uint64_t count;
};
#define VO_PASS_PERF_MAX 128