Files
GVFG_Standalone/GVFG_SDK/sdk/gvfg/include/gvfg_debug.h
T
Mark.lin 350e8e519c Streamline GigabyteLib capture control and diagnostics
Compared with d652f15:

- set the SDK release version to 1.0.0 for the new GigabyteLib backend and its required matching driver

- preserve GigabyteLib result codes and event names through the public SDK instead of translating vendor semantics

- expose cached Lib signal, SDI string fields, ErrorCount, and separate video/audio event counters for direct diagnostics

- serialize GigabyteLib capture calls and recover an active stream internally after a video input plugin event

- keep the SDK frame lifetime fence while following the current zero-copy contract without a vendor release call

- separate Sample logging and presentation counters from capture control, and report Lib-owned fields with explicit source names

- remove the manual Open Device control so Start lazily opens the selected device and revalidates VideoSignalLock once per request

- keep format selection side-effect free until Start opens the channel, then apply the selected output depth through GigabyteLib

- update the public API, diagnostics, architecture, error-handling, and build documentation for the simplified ownership model
2026-09-15 16:52:19 +08:00

60 lines
1.6 KiB
C

#pragma once
/*
* Internal GVFG debug API.
*
* Do not ship this header in customer/demo packages. It is intended for
* internal driver, FPGA, hardware bring-up, and diagnostic tools.
*/
#include "gvfg_capture.h"
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct
{
int running;
int frame_held;
uint32_t event_queue_depth;
uint64_t video_dma_event_wakes;
uint64_t extra_video_event_wakes;
uint64_t video_frames_from_lib;
uint64_t audio_dma_event_wakes;
uint64_t extra_audio_event_wakes;
uint64_t audio_frames_from_lib;
uint64_t get_frame_timing_samples;
double get_frame_timing_average_us;
double get_frame_timing_max300_us;
double get_frame_timing_max_us;
} gvfg_debug_backend_stats_t;
/*
* Query driver-neutral internal backend counters.
*
* This exposes implementation-level counters for internal tools only. Customer
* applications should use gvfg_get_channel_runtime_info() instead.
*/
GVFG_API gvfg_status_t gvfg_debug_get_channel_backend_stats(
GVFG_PARAM_IN gvfg_handle handle,
GVFG_PARAM_IN int channel_index,
GVFG_PARAM_OUT gvfg_debug_backend_stats_t *out_stats);
/* GIGABYTELIB GAP: GvfgSdk.lib 1.0.2 has no declared register-access API. */
GVFG_API gvfg_status_t gvfg_debug_read_register(
GVFG_PARAM_IN gvfg_handle handle,
GVFG_PARAM_IN uint32_t offset,
GVFG_PARAM_OUT uint32_t *out_value);
GVFG_API gvfg_status_t gvfg_debug_write_register(
GVFG_PARAM_IN gvfg_handle handle,
GVFG_PARAM_IN uint32_t offset,
GVFG_PARAM_IN uint32_t value);
#ifdef __cplusplus
}
#endif