Simplify dual-channel capture and error handling
Compared with b5b045a:
- Model CH0 and CH1 as independent channel sessions sharing one device connection.
- Keep one outstanding frame per channel and tighten read/release ownership validation.
- Unify facade and PCIES2MM diagnostic details in a per-channel ChannelErrorState.
- Treat polling timeouts and stop wakeups as expected control flow instead of persistent faults.
- Report detailed errors only when an API operation actually fails.
- Remove obsolete preview timing/error diagnostics and the redundant debug error API.
- Refresh the public and internal API references, architecture diagrams, and learning guides.
This commit is contained in:
@@ -116,7 +116,7 @@ extern "C"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int connected; /* Non-zero while the selected channel has a valid input signal. */
|
||||
int connected; /* Non-zero while this channel has a valid input signal. */
|
||||
int channel; /* gvfg_channel_t selected when the device was opened. */
|
||||
int width; /* Signal width in pixels when connected. */
|
||||
int height; /* Signal height in pixels when connected. */
|
||||
@@ -533,7 +533,12 @@ extern "C"
|
||||
GVFG_API const char *gvfg_strerror(
|
||||
_In_ gvfg_status_t status);
|
||||
|
||||
/* Copy the most recent detailed error for this handle. */
|
||||
/*
|
||||
* Copy the most recent detailed fault or rejected API call for one
|
||||
* channel. Event-poll timeouts are not stored; frame-read timeouts currently
|
||||
* retain the backend timeout detail. A successful gvfg_start_channel()
|
||||
* begins a new diagnostic lifetime.
|
||||
*/
|
||||
GVFG_API gvfg_status_t gvfg_get_channel_last_error_detail(
|
||||
_In_ gvfg_handle handle,
|
||||
_In_ int channel_index,
|
||||
|
||||
@@ -51,14 +51,6 @@ typedef struct
|
||||
double get_frame_timing_average_us;
|
||||
double get_frame_timing_max300_us;
|
||||
double get_frame_timing_max_us;
|
||||
uint64_t event_wait_timing_samples;
|
||||
double event_wait_timing_average_us;
|
||||
double event_wait_timing_max300_us;
|
||||
double event_wait_timing_max_us;
|
||||
uint64_t sdk_processing_timing_samples;
|
||||
double sdk_processing_timing_average_us;
|
||||
double sdk_processing_timing_max300_us;
|
||||
double sdk_processing_timing_max_us;
|
||||
} gvfg_debug_backend_stats_t;
|
||||
|
||||
/*
|
||||
@@ -72,17 +64,6 @@ GVFG_API gvfg_status_t gvfg_debug_get_channel_backend_stats(
|
||||
_In_ int channel_index,
|
||||
_Out_ gvfg_debug_backend_stats_t *out_stats);
|
||||
|
||||
/*
|
||||
* Copy the latest backend error detail into out_message.
|
||||
*
|
||||
* The message is UTF-8 and null-terminated when out_message_size is non-zero.
|
||||
*/
|
||||
GVFG_API gvfg_status_t gvfg_debug_get_channel_last_error_detail(
|
||||
_In_ gvfg_handle handle,
|
||||
_In_ int channel_index,
|
||||
_Out_writes_to_opt_(out_message_size, out_message_size) char *out_message,
|
||||
_In_ uint32_t out_message_size);
|
||||
|
||||
/*
|
||||
* Read or write one 32-bit BAR-relative hardware register.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user