Move capture safeguards into the SDK
Compared with 0fc22a1:
- normalize public pixel-format values and keep release diagnostics backend-neutral
- enforce the cross-channel Y210 constraint in the SDK and simplify the customer-facing contract
This commit is contained in:
@@ -35,6 +35,12 @@ typedef struct
|
||||
char last_vendor_error_name[64];
|
||||
} gvfg_debug_backend_stats_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
uint32_t video_channel_count;
|
||||
int has_audio;
|
||||
} gvfg_debug_device_capabilities_t;
|
||||
|
||||
/*
|
||||
* Query driver-neutral internal backend counters.
|
||||
*
|
||||
@@ -46,6 +52,12 @@ GVFG_API gvfg_status_t gvfg_debug_get_channel_backend_stats(
|
||||
GVFG_PARAM_IN int channel_index,
|
||||
GVFG_PARAM_OUT gvfg_debug_backend_stats_t *out_stats);
|
||||
|
||||
/* Query device capabilities for internal diagnostics. At least one channel
|
||||
* must already be open on handle. */
|
||||
GVFG_API gvfg_status_t gvfg_debug_get_device_capabilities(
|
||||
GVFG_PARAM_IN gvfg_handle handle,
|
||||
GVFG_PARAM_OUT gvfg_debug_device_capabilities_t *out_capabilities);
|
||||
|
||||
/* 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,
|
||||
|
||||
Reference in New Issue
Block a user