Add HDMI audio input queries and split OSD into a helper in GVFG SDK 3.2

- Expose HDMI audio input information through the capture API and refresh the bundled Gigabyte library.
- Move OSD rendering into gvfg_osd.dll, connect channel OSD through the capture frame processor, and remove the experimental in-place zero-copy OSD path.
- Update playback integration, the customer API documentation, and the internal build guide.

Validation: git diff --cached --check passed. The MSVC Release SDK build passed. Capture hardware and runtime behavior were not tested.
This commit is contained in:
2026-11-25 09:35:49 +08:00
parent 7a7027391e
commit a47ab190bc
26 changed files with 1080 additions and 867 deletions
+2
View File
@@ -222,6 +222,8 @@ Zero-copy 模式必須在 channel open 前選擇;要切換模式時,先銷
### SDK OSD
使用 OSD 時請包含 `gvfg_osd.h`,連結 `gvfg_osd.lib`(MinGW 使用 `libgvfg_osd.dll.a`),並隨應用程式部署同一次 SDK 建置的 `gvfg_osd.dll` 和 `gvfg.dll`。一般擷取只需連結 `gvfg.dll` 對應的 import library。
每個已 open 的 channel 可設定兩組 OSD,`osd_index` 為 `0`、`1`;重疊時第 `1` 組在上方。
OSD 會加入後續取得的 YUY2/Y210 frame,preview、snapshot 或錄影是否顯示 OSD,
取決於它們是否使用這份 frame。
@@ -254,6 +254,8 @@ typedef struct gvfg_handle_t *gvfg_handle;
### 1.20 `gvfg_channel_osd_config_t` 與 `gvfg_osd_font_list_t`
使用 OSD 時請包含 `gvfg_osd.h`,連結 `gvfg_osd.lib`(MinGW 使用 `libgvfg_osd.dll.a`),並隨應用程式部署同一次 SDK 建置的 `gvfg_osd.dll` 和 `gvfg.dll`。一般擷取只需連結 `gvfg.dll` 對應的 import library。
```c
typedef struct gvfg_channel_osd_config_t {
const char *text;
+4 -2
View File
@@ -34,7 +34,8 @@ SDK 與 Demo 現在不是同一個頂層 CMake 專案。不存在 `BUILD_GVFG_SA
| SDK target | 類型 | 說明 |
|---|---|---|
| `gvfg` | SHARED | Capture facade、vendor adapter、GPU conversion/OSD |
| `gvfg` | SHARED | Capture facade、vendor adapter、GPU conversion |
| `gvfg_osd` | SHARED | 文字與字型、BGRA 疊圖、GPU 通道 OSD |
| `gvfg_playback` | SHARED | 對外播放 DLL,只匯出 Playback 函式 |
| `gvfg_preview` | STATIC | D3D backend,私下連結進 Playback |
| `gvfg_audio_playback` | STATIC | WASAPI backend,私下連結進 Playback |
@@ -54,7 +55,8 @@ SDK build 不需要 Qt,也不產生 Demo EXE。
`GVFG_MINGW_DLLTOOL` 是 FILEPATH,可指向 dlltool 以產生客戶端 GNU 匯入庫。
這不表示 MSVC vendor 靜態庫可直接由 MinGW 建置 SDK。
`GVFG_EXPERIMENTAL_ZERO_COPY_OSD_INPLACE` 是現有預設 OFF 的實驗選項,不屬於客戶播放設定。
SDK 會一併建置 `gvfg_osd.dll`。使用 OSD 的應用程式(例如 Qt Viewer)需包含 `gvfg_osd.h`、連結 OSD import library,並部署 OSD DLL。
## 4. Sample 的三種 SDK 來源