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:
@@ -1,10 +1,10 @@
|
||||
# GVFG SDK 與 Demo 建置說明
|
||||
|
||||
SDK version 由 `GVFG_SDK/CMakeLists.txt` 決定,目前為 3.1.0。
|
||||
SDK version 由 `GVFG_SDK/CMakeLists.txt` 決定,目前為 3.2.0。
|
||||
|
||||
修改共用類別的成員配置或公開 API 後,先完整重建 SDK,再清理並重建使用它的 APP。
|
||||
連結成功不代表 object 使用相同的類別大小;標頭相依追蹤失效時,舊 object 可能造成
|
||||
heap corruption。SDK 3.0.0 的 OSD 與 Playback 統計介面含不相容變更,部署時必須配套
|
||||
heap corruption。SDK 3.0.0 的 OSD 與 Playback 統計介面,以及 3.2.0 將 OSD 移到 `gvfg_osd.dll`,都是不相容變更;部署時必須配套
|
||||
使用同版 header、import library 與 DLL,不可只替換單一檔案。
|
||||
Sample version 由自己的 CMake 決定;目前 checkout 是內部分支,與 customer master 不必相同。
|
||||
|
||||
@@ -46,7 +46,7 @@ SDK 與 Demo 現在不是同一個頂層 CMake 專案。不存在 `BUILD_GVFG_SA
|
||||
|
||||
```bat
|
||||
cmake -S GVFG_Standalone/GVFG_SDK -B GVFG_Standalone/GVFG_SDK/build_release -G Ninja -DCMAKE_BUILD_TYPE=Release
|
||||
cmake --build GVFG_Standalone/GVFG_SDK/build_release --target gvfg gvfg_playback
|
||||
cmake --build GVFG_Standalone/GVFG_SDK/build_release --target gvfg gvfg_osd gvfg_playback
|
||||
```
|
||||
|
||||
Ninja 使用 CMAKE_BUILD_TYPE;Visual Studio 多組態 generator 使用 `--config Release`。
|
||||
@@ -86,8 +86,10 @@ Customer Demo 使用公開 API、基本狀態與必要錯誤,不輸出同步
|
||||
Release 不編譯該診斷來源。內部版規則以 Sample 的 INTERNAL_BRANCH_WORKFLOW.md 為準;
|
||||
不要把內部分支或 Debug binary 當成客戶交付版本。
|
||||
|
||||
SDK 與 Preview 的 `GVFG_INTERNAL_DIAGNOSTICS` 各由其 CMake 依組態定義,
|
||||
不是可任意切換所有模組的統一 runtime 設定。不要假設 Debug 有 vendor 未提供的 IRQ/DMA loss counter。
|
||||
`GVFG_INTERNAL_DIAGNOSTICS` 是編譯期定義,各 target 的 CMake 自行決定:`gvfg` 與 `gvfg_playback`
|
||||
在 Debug 組態,或設定頂層 CMake 選項 `-DGVFG_ENABLE_INTERNAL_DIAGNOSTICS=ON`(預設 OFF)時啟用;
|
||||
`gvfg_preview` 只在 Debug 啟用。它不是可任意切換所有模組的統一 runtime 設定。
|
||||
客戶 Release 套件應使用預設 OFF 建置。不要假設 Debug 有 vendor 未提供的 IRQ/DMA loss counter。
|
||||
|
||||
## 6. 安裝與封裝
|
||||
|
||||
@@ -95,9 +97,11 @@ SDK 與 Preview 的 `GVFG_INTERNAL_DIAGNOSTICS` 各由其 CMake 依組態定義
|
||||
cmake --install GVFG_Standalone/GVFG_SDK/build_release --prefix sdk_package
|
||||
```
|
||||
|
||||
乾淨 install tree 只交付 Capture/Playback 的 DLL 與匯入庫、公開標頭及客戶文件。
|
||||
乾淨 install tree 只交付 Capture/OSD/Playback 的 DLL 與匯入庫、公開標頭及客戶文件。
|
||||
不交付 backend 靜態 `.lib`、private source、gvfg_debug.h、vendor headers 或舊 helper DLL。
|
||||
客戶文件同時安裝英文(`*.md`)與繁體中文(`*.zh-TW.md`)兩個版本。
|
||||
文件保留 `GVFG_Customer_doc/` 子目錄,使使用手冊與 API Reference 的相對連結在安裝後仍成立。
|
||||
`GVFG_Customer_doc/` 內的 PDF 與 DOCX 是產生當時的快照,安裝規則不包含它們。
|
||||
使用新目錄安裝;cmake install 不會自動移除舊套件留下的 helper DLL 或舊文件。
|
||||
|
||||
Customer Sample 的 `package_release.bat` 由已建好的 Release EXE 打包:
|
||||
|
||||
Reference in New Issue
Block a user