Streamline GigabyteLib capture control and diagnostics
Compared with d652f15:
- set the SDK release version to 1.0.0 for the new GigabyteLib backend and its required matching driver
- preserve GigabyteLib result codes and event names through the public SDK instead of translating vendor semantics
- expose cached Lib signal, SDI string fields, ErrorCount, and separate video/audio event counters for direct diagnostics
- serialize GigabyteLib capture calls and recover an active stream internally after a video input plugin event
- keep the SDK frame lifetime fence while following the current zero-copy contract without a vendor release call
- separate Sample logging and presentation counters from capture control, and report Lib-owned fields with explicit source names
- remove the manual Open Device control so Start lazily opens the selected device and revalidates VideoSignalLock once per request
- keep format selection side-effect free until Start opens the channel, then apply the selected output depth through GigabyteLib
- update the public API, diagnostics, architecture, error-handling, and build documentation for the simplified ownership model
This commit is contained in:
@@ -91,20 +91,10 @@ gvfg_set_channel_zero_copy_enabled(handle, GVFG_CHANNEL_0, 1);
|
||||
gvfg_open_channel(handle, device_index, GVFG_CHANNEL_0);
|
||||
```
|
||||
|
||||
每個 channel 可在 open 前選擇要註冊/接收的事件:
|
||||
|
||||
```c
|
||||
uint32_t events = GVFG_EVENT_MASK_SIGNAL_CONNECTED |
|
||||
GVFG_EVENT_MASK_SIGNAL_DISCONNECTED |
|
||||
GVFG_EVENT_MASK_FORMAT_CHANGE_BEGIN;
|
||||
gvfg_set_channel_event_mask(handle, GVFG_CHANNEL_0, events);
|
||||
gvfg_open_channel(handle, device_index, GVFG_CHANNEL_0);
|
||||
```
|
||||
|
||||
`VIDEO_DMA` 為 frame capture 必需,SDK 固定註冊。Plug-in、Unplug 與
|
||||
Format-change driver event 則依 mask 註冊;關閉它們也會停用對應的自動訊號恢復。
|
||||
Application 收到 `GVFG_EVENT_SIGNAL_DISCONNECTED` 後應暫停 video/audio read,
|
||||
等待 `GVFG_EVENT_SIGNAL_CONNECTED` 或 stop 再喚醒 worker,不應在已知無訊號時持續
|
||||
SDK 直接使用 GigabyteLib 建立的 video frame、format changed、input plug-in 與
|
||||
input unplug events;audio 開啟時才使用 audio frame events。Application 收到
|
||||
`GVFG_EVENT_VIDEO_INPUT_UNPLUG` 後應暫停 video/audio read,等待
|
||||
`GVFG_EVENT_VIDEO_INPUT_PLUGIN` 或 stop 再喚醒 worker,不應在已知無訊號時持續
|
||||
輪詢 timeout。
|
||||
|
||||
每個成功取得的 video/audio frame 都包含 `timestamp_ns`。兩者使用相同的
|
||||
|
||||
Reference in New Issue
Block a user