Expose the remaining GigabyteLib queries
Compared with aac4edd:
- expose optional device capability and SDI detail queries through the public GVFG API
- use GvfgGetDevInfo only when an application requests device capabilities
- use GvfgGetSdiVideoInputInfo and GvfgStringifySdiVideoInputInfo only when an application requests SDI details
- return both native SDI values and the vendor-formatted mode, resolution, frame-rate, and scan strings
- source the device interface GUID directly from the supervisor-provided gvfgsdkapi.h
- preserve the existing capture path and all previous public exports
This commit is contained in:
@@ -132,6 +132,28 @@ extern "C"
|
||||
char name[128]; /* Display name for UI/logging. UTF-8, null-terminated. */
|
||||
} gvfg_device_info_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
uint32_t video_channel_count;
|
||||
int has_audio;
|
||||
} gvfg_device_capabilities_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int connected;
|
||||
uint32_t mode;
|
||||
uint32_t resolution;
|
||||
uint32_t fps;
|
||||
int progressive;
|
||||
int level_b;
|
||||
uint32_t st352_payload;
|
||||
uint32_t error_count;
|
||||
char mode_name[16];
|
||||
char resolution_name[64];
|
||||
char fps_name[24];
|
||||
char scan_name[16];
|
||||
} gvfg_sdi_info_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int connected; /* Non-zero while this channel has a valid input signal. */
|
||||
@@ -562,6 +584,16 @@ extern "C"
|
||||
_In_ int channel_index,
|
||||
_Out_ gvfg_signal_status_t *out_status);
|
||||
|
||||
/* Optional vendor-backed device and SDI detail queries. */
|
||||
GVFG_API gvfg_status_t gvfg_get_device_capabilities(
|
||||
_In_ gvfg_handle handle,
|
||||
_Out_ gvfg_device_capabilities_t *out_capabilities);
|
||||
|
||||
GVFG_API gvfg_status_t gvfg_get_channel_sdi_info(
|
||||
_In_ gvfg_handle handle,
|
||||
_In_ int channel_index,
|
||||
_Out_ gvfg_sdi_info_t *out_info);
|
||||
|
||||
/*
|
||||
* Query runtime frame-delivery diagnostics.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user