#pragma once /* Internal playback diagnostics. Do not install or ship this header. * The query is exported only by Debug builds. No stable diagnostic ABI. */ #include "gvfg_playback.h" typedef struct { int running; int buffering; gvfg_playback_status_t last_error; uint64_t video_submitted; uint64_t video_processed; /* Includes hidden and skipped preview frames. */ uint64_t video_presented; /* Accepted by Present, not physical scanout. */ uint64_t audio_submitted; uint64_t rebuffer_count; uint64_t video_queue_bytes; /* Includes the in-flight CPU copy. */ uint32_t video_queue_frames; double audio_queue_ms; uint64_t video_timestamp_ns; uint64_t audio_timestamp_ns; /* Estimated output position, not acoustic time. */ int64_t av_difference_ns; /* audio - video; requires both clocks. */ double audio_rate_ratio; uint64_t video_dropped; int sync_degraded; uint64_t sync_fallbacks; uint64_t audio_dropped_frames; /* Core queue only; not device padding. */ } gvfg_playback_debug_stats_t; #if GVFG_INTERNAL_DIAGNOSTICS #ifdef __cplusplus extern "C" { #endif GVFG_PLAYBACK_API gvfg_playback_status_t gvfg_playback_debug_get_stats( gvfg_playback p, gvfg_playback_debug_stats_t *stats); #ifdef __cplusplus } #endif #endif