Update SDK 3.2 documentation and add English and Traditional Chinese versions
- Check the README, customer guides, API reference, and internal notes against the SDK 3.2.0 headers, export lists, and CMake rules. Fix stale versions, the OSD move to gvfg_osd.dll, the OSD example header, and missing APIs (HDMI audio info, the HDMI and chip structs, gvfg_render_osd_frame_bgra, gvfg_playback_enable_audio_reconnect). - Document present_image returning EOUTPUT when nothing was presented, opt-in audio reconnect for EAUDIO, and whole-macropixel YUY2 row sizes. - Make English the primary *.md for the README and customer documents, keep Traditional Chinese as *.zh-TW.md, and install both language versions. - Update the GigabyteLib README version and checksum to 1.0.5 and redraw the architecture diagram for the Capture, OSD, and Playback DLLs. Validation: git diff --cached --check passed. All relative links and anchors in the changed Markdown files resolve, and the drawio XML parses with valid edges and non-overlapping boxes. No build, cmake --install, or PDF regeneration was run, and the diagram was not opened in draw.io. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+23
-10
@@ -9,21 +9,21 @@ release。舊 `giga_ioctl.dll` 與直接 register/IOCTL
|
||||
backend 已移除。`GvfgSdk.lib` 靜態連結進 `gvfg.dll`,不是客戶 runtime 相依。
|
||||
|
||||
本文件只供 GVFG SDK、driver、FPGA 與內部診斷工具維護者使用。客戶行為與公開
|
||||
契約請以 `GVFG_CUSTOMER_API.md`、`GVFG_CUSTOMER_API_REFERENCE.md` 和
|
||||
`gvfg_capture.h` 為準。本文件中的 IOCTL、
|
||||
契約請以 `GVFG_CUSTOMER_API.md`、`GVFG_CUSTOMER_API_REFERENCE.md`(或其 `.zh-TW.md` 版本)和
|
||||
`gvfg_capture.h`、`gvfg_osd.h` 為準。本文件中的 IOCTL、
|
||||
register、ring、counter 與執行緒模型都不是公開 ABI。
|
||||
|
||||
## 1. 客戶/內部邊界
|
||||
|
||||
| 類別 | 客戶套件 | 僅內部 |
|
||||
|---|---|---|
|
||||
| Header | `gvfg_capture.h`、選用 `gvfg_playback.h` | `gvfg_debug.h`、backend headers |
|
||||
| Binary | `gvfg.dll/.lib`、選用 `gvfg_playback.dll/.lib` | driver/FPGA 診斷工具 |
|
||||
| 文件 | `GVFG_CUSTOMER_API.md`、`GVFG_CUSTOMER_API_REFERENCE.md` | 本文件 |
|
||||
| Header | `gvfg_capture.h`、選用 `gvfg_osd.h`、選用 `gvfg_playback.h` | `gvfg_debug.h`、backend headers |
|
||||
| Binary | `gvfg.dll/.lib`、選用 `gvfg_osd.dll/.lib`、選用 `gvfg_playback.dll/.lib` | driver/FPGA 診斷工具 |
|
||||
| 文件 | `GVFG_CUSTOMER_API*.md`、`GVFG_PLAYBACK_API*.md`、`GVFG_CUSTOMER_API_REFERENCE*.md`(英文與 zh-TW) | 本文件 |
|
||||
| 資訊 | lifecycle、frame、event、signal、runtime FPS | IOCTL、IRQ、register、DMA/ring、debug counters |
|
||||
|
||||
CMake install 會安裝公開的 `gvfg_capture.h`、選用的 `gvfg_playback.h`、客戶文件,
|
||||
以及 `gvfg.dll`、`gvfg_playback.dll` 等 target 產物;不得把
|
||||
CMake install 會安裝公開的 `gvfg_capture.h`、選用的 `gvfg_osd.h`、`gvfg_playback.h`、客戶文件,
|
||||
以及 `gvfg.dll`、`gvfg_osd.dll`、`gvfg_playback.dll` 等 target 產物;不得把
|
||||
`gvfg_debug.h`、GigabyteLib private header/lib 或 `sdk/gvfg/src` 加入 customer package。
|
||||
|
||||
## 2. 元件責任
|
||||
@@ -65,6 +65,11 @@ customer/sample (optional)
|
||||
| `gvfg_get_channel_signal_status()` | `GVFG_VIDEO_INFO` cache | `VideoSignalLock` 轉 connected、FourCC 轉 SDK pixel format,並由格式推導 bit depth;正常 UI refresh 只讀 cache |
|
||||
| `gvfg_debug_get_device_capabilities()` | `GvfgGetDevInfo()` | Video channel count 與 audio capability 僅供內部診斷工具使用 |
|
||||
| `gvfg_get_channel_sdi_info()` | `GvfgGetSdiVideoInputInfo()`、`GvfgStringifySdiVideoInputInfo()` | 同時提供 Lib 原始欄位的 SDK enum/value 與全部八個未改寫的 Lib 格式化字串,不公開 private struct |
|
||||
| `gvfg_get_channel_hdmi_info()` | `GvfgGetHdmiVideoInputInfo()` | 複製 lock、寬高、FPS、色彩格式/空間代碼與位深;`fps_name` 與色彩名稱由 SDK 依代碼產生 |
|
||||
| `gvfg_get_channel_hdmi_audio_info()` | `GvfgGetHdmiAudioInputInfo()` | 複製 lock、取樣頻率代碼、位元數、聲道數與格式代碼;只在 lock 時由 SDK 填入名稱字串 |
|
||||
| `gvfg_get_chip_info()` | `GvfgGetChipInfo()` | 需任一 channel 已 open;保留原始十六進位日期/時間 |
|
||||
| `gvfg_debug_set_user_led()` | `GvfgSetLed()` | 僅供內部診斷;需任一 channel 已 open |
|
||||
| OSD APIs(`gvfg_osd.dll`) | SDK DirectWrite/D3D11 | `gvfg_osd.dll` 透過 `gvfg.dll` 未公開於標頭的匯出 `gvfg_control_frame_processor` 掛上 channel frame processor;GigabyteLib 不參與 |
|
||||
| `gvfg_get_channel_audio_format()` | `GvfgGetAudioInfo()` | 只公開 sample rate、channels、bits per sample;`cbBufSize` 留在 SDK 作為讀取 buffer 大小,忽略 Lib FrameCount |
|
||||
| `gvfg_start_channel()`、stop APIs | `GvfgStartCapture()`、`GvfgStopCapture()` | 驗證狀態、處理 wait cancellation、held frame、event queue、熱插拔恢復與 SDK counters |
|
||||
| `gvfg_read_channel_frame()` | Lib video events + GetFrame API | 驗證 read/held 狀態,加入 row stride、SDK delivery frame ID、monotonic timestamp 與 delivery FPS 統計 |
|
||||
@@ -135,8 +140,8 @@ x64 `gvfg_frame_t` ABI 已在 `gvfg_capture.cpp` 以 static assertions 固定為
|
||||
## GigabyteLib requirement
|
||||
|
||||
Capture、audio、event 與 frame ownership 的 driver ABI 由主管提供的
|
||||
`GvfgSdk.lib` 負責。Output-format selection 已改用 library 1.0.2 的
|
||||
`GvfgSetVideoColorDepth()`;目前唯一例外是 diagnostic register R/W,集中在
|
||||
`GvfgSdk.lib` 負責。Output-format selection 自 library 1.0.2 起改用
|
||||
`GvfgSetVideoColorDepth()`;目前(GigabyteLib 1.0.5)唯一例外是 diagnostic register R/W,集中在
|
||||
`gigabyte_driver_extensions.*`,不得擴大成第二套 capture backend。待主管補上正式
|
||||
register API 後應刪除此 extension。
|
||||
|
||||
@@ -181,6 +186,14 @@ cached signal。Facade callback 會先將 backend cache 同步到 channel cache
|
||||
- `gvfg_debug_get_channel_backend_stats()`:指定 channel 的 running/frame-held 狀態、
|
||||
event queue depth、frame wait timeout、video/audio event wake、audio 讀取量與
|
||||
GigabyteLib GetFrame/acquire timing。
|
||||
- `gvfg_debug_read_channel_frame_timed()`/`gvfg_debug_read_channel_frame_profiled()`:
|
||||
與公開 read 相同 ownership 的讀取變體,另回傳 OSD 各階段 CPU 時間與 acquisition 起點。
|
||||
- `gvfg_debug_get_device_capabilities()`:video channel 數與是否有 audio。
|
||||
- `gvfg_debug_set_user_led()`:板上 user LED。
|
||||
- `gvfg_debug_read_register()`/`gvfg_debug_write_register()`:GigabyteLib gap 的 direct driver extension。
|
||||
|
||||
這些函式列在 `gvfg.def`,Release `gvfg.dll` 也會匯出;客戶套件不附 `gvfg_debug.h`,
|
||||
Customer Demo 的封裝腳本會檢查 EXE 未匯入 `gvfg_debug_*`。
|
||||
|
||||
公開的 `gvfg_runtime_info_t` 只保留 application-facing capture FPS 與 delivered frame
|
||||
數;zero-copy 用公開 getter 查詢。Debug 結構不重複這些公開資訊,也不偽造
|
||||
@@ -217,7 +230,7 @@ Audio backend 操作 PCM/WASAPI、raw frame position、pause/rate;Preview
|
||||
|
||||
present_fps/video_presented 是 DXGI 接受 Present,不是實體 scanout。
|
||||
video_dropped 包含 core 過期退休與 backend busy 等略過,不代表 Capture 或錄影 loss。
|
||||
欄位定義見 [公開 Reference](GVFG_Customer_doc/GVFG_CUSTOMER_API_REFERENCE.md),
|
||||
欄位定義見 [公開 Reference](GVFG_Customer_doc/GVFG_CUSTOMER_API_REFERENCE.zh-TW.md),
|
||||
實作見 [Playback 維護說明](../GVFG_SDK/helpers/gvfg_playback/README.md)。
|
||||
|
||||
## 10. 已知限制與發佈檢查表
|
||||
|
||||
Reference in New Issue
Block a user