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:
Mark.lin
2026-08-27 11:10:51 +08:00
parent b5b045a41a
commit f380a8a143
21 changed files with 1658 additions and 545 deletions
+7 -2
View File
@@ -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,