- 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>
3.8 KiB
3.8 KiB
GVFG 文件閱讀入口
更新於 2026-12-01;SDK 3.2.0。以下連結以目前 source tree 為準。
客戶與 Demo 使用者
- 客戶 Capture 使用手冊:裝置、channel、影音 read/release、事件與 OSD。
- 統一 Playback 使用手冊:一個播放 DLL、三種模式、單張顯示與舊版遷移。
- 公開 API Reference:Capture/OSD/Playback 型別、參數、所有權、狀態碼與限制;完整流程範例放在使用手冊。
- Customer Sample README:Qt Creator/CMake 建置與 Demo 操作。
不需先讀 driver、WASAPI 或 D3D 才能使用公開 API。Demo 只展示 API,不實作同步演算法。
SDK 維護與學習
客戶文件中的實作原理已移至 study:文件分工與內部說明, 兩組 OSD 的字型、mask、YUV、快取與 shader 見 study:OSD 實作章。
- 架構總覽圖(draw.io):三個 DLL、內部元件與 vendor/OS 邊界的一頁圖。
- 物件架構:Capture/Playback 兩種 handle、內部物件及 DLL/靜態 library。
- 資料流與狀態:借用 pointer、播放副本、read/release、重設與停止。
- Capture 錯誤處理:Capture status/detail 與 ownership;播放錯誤另看 API Reference 第 5 節。
- Playback 實作:PTS、master、共同緩衝、WASAPI 進度、漂移與過期預覽追趕。
- 內部建置說明:實際 target、Sample 三種 SDK 來源、install 與版本配套。
- 內部設計筆記:Capture facade、vendor adapter 與內部診斷邊界。
- Viewer backend 邊界:GVFG、DirectShow、錄影各自的責任。
建議的原始碼追蹤順序
| 問題 | 從哪裡看 |
|---|---|
| 公開型別與函式 | GVFG_SDK/sdk/gvfg/include/gvfg_capture.h、helpers/gvfg_osd/include/gvfg_osd.h、helpers/gvfg_playback/include/gvfg_playback.h |
| Capture token/channel lifecycle | GVFG_SDK/sdk/gvfg/src/gvfg_capture.cpp |
| vendor frame/event | GVFG_SDK/sdk/gvfg/src/gigabyte/gigabyte_capture_session.cpp |
| 開始播放、queue、master、過期退休 | GVFG_SDK/helpers/gvfg_playback/src/gvfg_playback.cpp |
| Clock/sample-to-PTS/DriftFilter | GVFG_SDK/helpers/gvfg_playback/src/playback_timing.h |
| WASAPI 與 raw frame position | GVFG_SDK/helpers/gvfg_audio_playback/src/ |
| GPU 上傳、呈現與完成通知 | GVFG_SDK/helpers/gvfg_preview/src/gvfg_preview.cpp |
| Demo 如何使用 API | Costomer_SDK_Release/GVFG_Customer_Sample/src/playback.cpp、capture_controller.cpp |
表內路徑分別相對 Standalone repo 或 SDK workspace;不是可依賴的公開 ABI。
怎麼判讀驗證結果
- source/文件核對:證明描述與所讀取的程式一致。
- build/export/相依檢查:證明指定環境可編譯連結,不等於硬體正常。
- 既有 120 秒 Qt 實機測試:驗證該情境的 FPS 與 queue 穩定,不等於小時級漂移或嘴型精度。
- 慢速輸出模擬:驗證過期預覽追趕與計數,不等於所有 GPU 的效能。
內部測試摘要放在 Playback 維護文件,客戶使用手冊不堆疊歷次除錯 log。 既有 PDF 是產生當時的快照;未依本次 Markdown 重製的 PDF 不可視為目前版本的最新說明。
讀任何成員時先問:誰擁有它、誰修改它、哪把鎖保護、資料何時失效、錯誤時是否還需 release。