Separate public runtime data from debug diagnostics

Compared with 90af75c:

- keep only application-facing capture FPS and delivered-frame count in gvfg_runtime_info_t

- move GigabyteLib frame-acquire timing exclusively to the internal debug statistics

- remove duplicated runtime, zero-copy, and last-frame fields from the debug structure

- remove synthetic backend DMA, interrupt, sequence, and capture counters not supplied by GigabyteLib

- retain uniquely useful wait, event, audio, frame-hold, and timing diagnostics plus register access

- update the Qt sample and documentation for the clarified ownership boundary
This commit is contained in:
Mark.lin
2026-09-14 14:31:13 +08:00
parent 90af75cdd1
commit 13aad44361
8 changed files with 34 additions and 120 deletions
+3 -5
View File
@@ -77,11 +77,9 @@ register 與 DMA 實作不屬於本文件。
| ------------------ | ---------- | ------------------------------------------------------- |
| `capture_fps` | `double` | 依 `gvfg_read_channel_frame()` 成功交付時間估算並平滑化的 FPS;尚無足夠 frame 時為 0 |
| `delivered_frames` | `uint64_t` | 此次 running session 中成功交付給 caller 的 frame 數 |
| `zero_copy_enabled` | `int` | 非零表示目前使用 driver zero-copy frame delivery |
| `driver_read_samples` | `uint64_t` | 排除前 30 張 warmup 後的 driver read/acquire timing 樣本數 |
| `driver_read_average_us` | `double` | `GET_FRAME` 或 zero-copy acquire 平均時間,單位為微秒 |
| `driver_read_max300_us` | `double` | 最近完成的 300-sample window 最大值,單位為微秒 |
| `driver_read_max_us` | `double` | 本次 capture lifetime 最大值,單位為微秒 |
Zero-copy 模式另由 `gvfg_get_channel_zero_copy_enabled()` 查詢;driver read/acquire
timing 屬於內部診斷資訊,不放入客戶 runtime 結構。
### 1.8 `gvfg_frame_t`