Add dual-slot font-selectable OSD and privatize playback diagnostics for SDK 3.0.0

- replace the single-overlay API with two independently configured OSD slots per channel, simplify NUL-terminated text/font settings, and add explicit visibility controls that preserve cached glyphs separately from Clear

- enumerate installed Windows font families as an SDK-owned UTF-8 list without callbacks or caller-side free, refresh installed fonts on demand, and use the selected family consistently for measurement and rendering with invalid/missing-font rejection

- retain per-slot YUV and A8 mask caches, blend slot 1 over slot 0 in one GPU dispatch/readback, preserve hidden surfaces, and skip oversized slots independently while capture and the other slot continue

- move detailed playback core statistics to a private Debug-only header/export, remove the public legacy statistics query and compatibility layouts, and retain public preview/delivery statistics

- bump the SDK major version to 3.0.0 for the breaking OSD and playback API changes and document matching header, import-library and runtime deployment requirements

- refresh the capture/playback guides, internal build notes and API reference, document all 51 public Capture/Playback functions, add checked OSD usage examples, and regenerate the branded 23-page PDF

Validation: git diff --cached --check and public API documentation coverage checks passed. The regenerated PDF passed text/content checks and visual review of its rendered pages, including the OSD types, API contracts and examples. Earlier session SDK Release compilation and synthetic YUY2/Y210 blending checks passed; no new build, hardware capture, FPGA upload or long-duration runtime validation was performed during this commit pass.
This commit is contained in:
Mark.lin
2026-10-29 09:02:54 +08:00
parent bfa9397f6b
commit c8b2d0608a
24 changed files with 796 additions and 482 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
# GVFG 統一影音播放使用手冊
適用於 SDK 2.1.1。應用程式使用 `gvfg_capture.h` 擷取資料,使用
適用於 SDK 3.0.0。應用程式使用 `gvfg_capture.h` 擷取資料,使用
`gvfg_playback.h` 播放;時鐘、共同緩衝及影音同步由 Playback 管理。
## 1. 連結與部署
@@ -154,7 +154,7 @@ bool SubmitOneAudio(gvfg_handle capture, int channel, gvfg_playback player)
Playback 自動降級:影像持續顯示最新可用影格,音訊以正常速率播放並丟棄積壓的待播資料。
沒有音訊資料時保持靜音,不會因為等待音訊而持續凍結影像;資料不足仍可能聽見音訊間斷。
來源與輸出穩定後會自動恢復同步,重新對齊時可能短暫保留目前畫面。
`sync_degraded`、`sync_fallbacks`、`audio_dropped_frames` 可供整合工具查詢;應用程式不需實作降級控制。
降級、待播資料丟棄與恢復由 Playback 內部處理,應用程式不需另寫控制邏輯。
submit 返回 OK 表示資料已由播放器管理,包含略過顯示或丟棄待播副本的情況;不保證每筆都輸出。
單張影像/單包 PCM 超出其設定容量屬於 `EINVAL`,應修正 config 或輸入大小。