Replace the legacy backend with GigabyteLib

Compared with 5f74655:

- Preserve the public gvfg C API while replacing the direct PCIE S2MM register, IOCTL, and giga_ioctl.dll implementation with a per-channel adapter around the supervisor-provided GvfgSdk.lib API.

- Route device open, event creation, video/audio capture, copy and zero-copy frame delivery, zero-copy release, signal metadata, and stream teardown through GigabyteLib while retaining the existing facade ownership and timeout contracts.

- Remove the obsolete giga_ioctl target and legacy register/video-format backend files, and stop requiring or packaging giga_ioctl.dll in the Qt sample and customer archives.

- Vendor the matched GigabyteLib 1.0.0 headers and static library with provenance and checksum documentation, and update build, architecture, frame-flow, and customer deployment documentation for the new boundary.

- Keep gvfg_set_channel_video_format source-compatible, but report GVFG_ENOTSUP when the connected native input format differs because the supplied GigabyteLib API does not expose output-format conversion. Direct debug register reads and writes are likewise unsupported by this backend.

Validation: git diff --cached --check passed. MSVC x64 Release and Debug gvfg.dll builds passed, the Release Qt sample linked successfully, dumpbin confirmed gvfg.dll has no giga_ioctl.dll dependency and retains all 32 public exports, and the Release package script produced an archive without giga_ioctl.dll or private GigabyteLib files. No runtime capture, audio, zero-copy, hot-plug, dual-channel, device shutdown, MinGW, or hardware validation was run.
This commit is contained in:
Mark.lin
2026-09-14 09:46:37 +08:00
parent 5f74655b51
commit 0af70a59ca
34 changed files with 1131 additions and 2716 deletions
+3 -6
View File
@@ -12,7 +12,7 @@ done-index 與舊 SDK frame-ring 流程不在相容範圍內。
## 內容
- `GVFG_SDK`:獨立 SDK project,負責建立 `gvfg.dll`、`giga_ioctl.dll` 與選用的 `gvfg_preview.dll`。
- `GVFG_SDK`:獨立 SDK project,使用內嵌的 `GvfgSdk.lib` 建立 `gvfg.dll` 與選用的 `gvfg_preview.dll`。
- `GVFG_Qt_Sample`:獨立 Qt APP project,只連結預先建好的 SDK,不會編譯 SDK source。
- `docs`:API 與整合說明。
@@ -62,10 +62,8 @@ Build 產物:
```text
GVFG_SDK/build/Desktop_Qt_6_10_2_MSVC2022_64bit-Release/bin/gvfg.dll
GVFG_SDK/build/Desktop_Qt_6_10_2_MSVC2022_64bit-Release/bin/giga_ioctl.dll
GVFG_SDK/build/Desktop_Qt_6_10_2_MSVC2022_64bit-Release/bin/gvfg_preview.dll
GVFG_SDK/build/Desktop_Qt_6_10_2_MSVC2022_64bit-Release/lib/gvfg.lib
GVFG_SDK/build/Desktop_Qt_6_10_2_MSVC2022_64bit-Release/lib/giga_ioctl.lib
GVFG_SDK/build/Desktop_Qt_6_10_2_MSVC2022_64bit-Release/lib/gvfg_preview.lib
GVFG_SDK/build/Desktop_Qt_6_10_2_MSVC2022_64bit-Release/lib/libgvfg.dll.a
GVFG_SDK/build/Desktop_Qt_6_10_2_MSVC2022_64bit-Release/lib/libgvfg_preview.dll.a
@@ -204,11 +202,10 @@ IRQ、DMA 等資訊只存在 internal diagnostic tool。
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 必須一起提供。
`GvfgSdk.lib` 已靜態連結進 `gvfg.dll`,Application 不需另外部署
`giga_ioctl.dll` 或主管 library 的額外 runtime DLL。
需要 optional display helper 時,再加: