Release SDK 0.2.1 with unplug-safe zero-copy handling

Compared with SDK 0.2.0 (3cd7fbbb):

- Handle the zero-copy release race where the driver clears frame ownership before the SDK receives the unplug event. Wait up to 100 ms only after ERROR_BAD_COMMAND, accept the release as revoked only after a confirmed disconnect, and preserve all other release failures.

- Apply the same confirmed-unplug handling to normal frame release and pending-frame teardown without adding latency to successful per-frame releases.

- Add Debug-only audio event, frame, and byte counters across the Driver-to-SDK, SDK-to-APP, and APP-to-output boundaries, and show the concise totals in the internal diagnostic sample.

- Rename Release and Debug customer packages to the requested GVFG_Sample labels, use minute-resolution timestamps, and derive the package suffix from the root CMake project version.

- Bump the standalone SDK version to 0.2.1 and synchronize the public API examples and internal build guide.

Validation: git diff --check and focused source/diff inspection passed. No build, package generation, runtime capture, unplug stress test, or hardware validation was run.
This commit is contained in:
Mark.lin
2026-09-10 11:36:17 +08:00
parent 3cd7fbbb3f
commit cdd2f8a75b
14 changed files with 111 additions and 19 deletions
+1 -1
View File
@@ -576,7 +576,7 @@ extern "C"
_In_ int channel_index,
_Out_ gvfg_runtime_info_t *out_info);
/* Return the loaded GVFG runtime DLL version, for example "0.2.0". */
/* Return the loaded GVFG runtime DLL version, for example "0.2.1". */
GVFG_API const char *gvfg_get_version(void);
/* Convert a gvfg_pixel_format_t value to a static English format name. */
+4
View File
@@ -45,6 +45,10 @@ typedef struct
int backend_capture_active;
uint64_t backend_latest_sequence;
uint64_t backend_delivered_sequence;
uint64_t audio_dma_event_wakes;
uint64_t extra_audio_event_wakes;
uint64_t audio_frames_from_driver;
uint64_t audio_bytes_from_driver;
int get_frame_zero_copy;
uint64_t get_frame_timing_samples;