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
+6
View File
@@ -51,8 +51,10 @@ Build 產物:
```text
build/.../bin/gvfg.dll
build/.../bin/giga_ioctl.dll
build/.../bin/gvfg_preview.dll
build/.../lib/gvfg.lib
build/.../lib/giga_ioctl.lib
build/.../lib/gvfg_preview.lib
build/.../bin/gvfg_qt_preview.exe
```
@@ -136,8 +138,12 @@ runtime API 都明確要求 `channel_index`;不再保留隱含 selected-channe
include/gvfg_capture.h
lib/gvfg.lib
bin/gvfg.dll
bin/giga_ioctl.dll
```
Application 不直接 link `giga_ioctl.lib`,但 `gvfg.dll` 會在 runtime 載入
`giga_ioctl.dll`,因此部署時兩個 DLL 必須一起提供。
需要 optional display helper 時,再加:
```text