Simplify the SDK around GigabyteLib
Compared with 0af70a5:
- Remove the generic backend directory and legacy PCIE S2MM naming so the SDK now has a direct gvfg facade to GigabyteCaptureSession to GvfgSdk.lib structure.
- Delete the unsupported video-format setter and direct register read/write APIs instead of retaining compatibility methods that cannot be implemented by the supplied GigabyteLib interface.
- Remove output-format controls and requested-format state from the Qt sample; capture now follows the native YUY2 or Y210 format reported by GvfgGetVideoInfo.
- Eliminate the placeholder stream descriptor and allocate copy buffers from current GigabyteLib video metadata when a frame becomes available.
- Rename the internal debug stats API and fields from backend terminology to channel/session terminology, while retaining capture, audio, event, timeout, timing, and zero-copy diagnostics.
- Update source paths and documentation to describe GigabyteLib as the only lower layer and remove stale format-setting, register, and direct IOCTL guidance.
Validation: git diff --cached --check passed. MSVC x64 Release and Debug gvfg.dll builds passed, the Release Qt sample rebuilt and linked successfully, dumpbin verified the intentional 29-export API, and the Release package script produced an archive containing the sample and gvfg.dll without private GigabyteLib files or giga_ioctl.dll. No runtime capture, audio, zero-copy, hot-plug, dual-channel, shutdown, MinGW, or hardware validation was run.
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
## 建議閱讀順序
|
||||
|
||||
1. [`GVFG_Overview.md`](GVFG_Overview.md)
|
||||
- 先認識 `gvfg_handle_t`、`gvfg_channel_session_t`、`PcieS2mmCaptureSession`。
|
||||
- 先認識 `gvfg_handle_t`、`gvfg_channel_session_t`、`GigabyteCaptureSession`。
|
||||
- 理解 `unique_ptr`、`shared_ptr`、宣告與實際配置的差異。
|
||||
- 理解 CH0、CH1 如何共用同一個 Windows device handle。
|
||||
2. [`GVFG_ERROR_HANDLING.md`](GVFG_ERROR_HANDLING.md)
|
||||
@@ -31,7 +31,7 @@
|
||||
目前已實作:
|
||||
|
||||
- 一個 `gvfg_handle_t` 可管理 CH0、CH1。
|
||||
- CH0、CH1 共用一個 `PcieS2mmDeviceConnection`,底層只有一個 Windows device `HANDLE`。
|
||||
- CH0、CH1 共用一個 `GigabyteDeviceConnection`,底層只有一個 Windows device `HANDLE`。
|
||||
- 每條 channel 各自擁有 backend、event、capture thread、copy buffer 與 frame lifetime state。
|
||||
- 公開 API 已改為 channel-aware:open/start/read/release/poll/stop 都帶 `channel_index`。
|
||||
- copy mode 直接把 driver frame 寫入該 channel 的 `copy_buffer_`。
|
||||
|
||||
Reference in New Issue
Block a user