Simplify GVFG API and frame diagnostics
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user