Simplify GVFG API and frame diagnostics

This commit is contained in:
Mark.lin
2026-07-30 16:43:30 +08:00
parent 9124930e98
commit 2b5e75ade9
20 changed files with 245 additions and 257 deletions
+10 -5
View File
@@ -17,17 +17,22 @@ extern "C" {
typedef struct
{
uint32_t struct_size; /* Set to sizeof(gvfg_debug_backend_stats_t) before calling. */
int width; /* Width of the most recent frame returned by gvfg_read_frame(). */
int height; /* Height of the most recent frame returned by gvfg_read_frame(). */
int bit_depth; /* Bits per color channel of the frame buffer. */
int pixel_format; /* gvfg_pixel_format_t value: YUY2 or Y210. */
int valid; /* Non-zero after a frame is returned during the current running session. */
} gvfg_debug_last_frame_info_t;
typedef struct
{
int sdk_running;
int frame_held;
uint32_t event_queue_depth;
double runtime_fps;
uint64_t frames_returned;
int last_frame_width;
int last_frame_height;
int last_frame_pixel_format;
int last_frame_bit_depth;
gvfg_debug_last_frame_info_t last_frame;
int backend_state;
uint64_t backend_frames_captured;