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
@@ -49,11 +49,11 @@ SDK 配置交付 buffer;Playback 接受 PCM16 後另有自己的副本。
| start 後初始緩衝 | 等啟用串流與時間覆蓋範圍;音訊暫停,先準備 GPU |
| 播放中 | 根據 master 排程,音訊補足小段輸出 lead,影像到期才提交 |
| 重新緩衝 | 覆蓋範圍用盡,暫停共同時鐘與音訊,等待補足 |
| 持續輸出錯誤 | last_error 保存錯誤,後續 submit 回報,等待 caller 處理 |
| 持續輸出錯誤 | 後續 submit 回報同一錯誤,等待 caller 處理 |
| stop | join worker、清 queue、結束音訊輸出;保留可重用的 Preview 物件 |
| destroy | stop,再銷毀 Preview 與 handle |
`running=1` 只表示 session 已啟動,不能取代 last_error 檢查。
start 成功只表示 session 已啟動,仍須處理後續 submit 回傳的輸出錯誤。
External/Audio master 的過期預覽可退休;未到期 frame 不提前顯示,音訊不因此任意丟包。
隱藏預覽仍消化影像時間軸,不可停止 video submit 卻保留影音模式。