Expose common delivery timestamps for A/V sync

Compared with 7e5d3d2:

- Add monotonic timestamp_ns fields to public video and audio frame tokens so applications can compare delivery timing in one SDK clock domain.

- Stamp video delivery in the PCIe backend and audio delivery in the GVFG facade while preserving complete read/release token validation.

- Update x64 ABI assertions and bump the standalone SDK version to 0.2.0 for the public frame-structure change.

- Document timestamp semantics and limitations across the README, customer API references, internal ABI notes, and build guidance.

- Leave the standalone preview sample behavior unchanged; timestamp-based synchronization remains an application policy.

Validation: git diff --check and focused source inspection passed; no build, ABI consumer rebuild, recording, or hardware capture validation was run.
This commit is contained in:
Mark.lin
2026-09-08 15:20:40 +08:00
parent 7e5d3d2cca
commit 3cd7fbbb3f
10 changed files with 36 additions and 10 deletions
+4
View File
@@ -109,6 +109,10 @@ Application 收到 `GVFG_EVENT_SIGNAL_DISCONNECTED` 後應暫停 video/audio rea
等待 `GVFG_EVENT_SIGNAL_CONNECTED` 或 stop 再喚醒 worker,不應在已知無訊號時持續
輪詢 timeout。
每個成功取得的 video/audio frame 都包含 `timestamp_ns`。兩者使用相同的
monotonic SDK delivery clock,可供 Application 做 soft A/V sync;它不是硬體
capture timestamp,也不能跨 process 或 session 比較。
每個 channel 預設為 copy mode。指定 channel open 後不可切換該路模式;
另一條尚未 open 的 channel 仍可獨立選擇。Zero-copy mode 仍使用相同的 `gvfg_read_channel_frame()` /
`gvfg_release_channel_frame()` ownership contract,每次成功 read 都必須 release。