Make capture metadata event-driven

Stop querying GigabyteLib video and audio information for every captured frame. Refresh cached video metadata at open, start, format changes, and signal events, and refresh audio metadata at stream start.

Ignore the vendor FrameCount fields as requested by the driver and library owner. Generate independent SDK delivery IDs for video and audio, reset them for every channel start, and document the new public frame_id semantics.

Clarify diagnostic ownership with LIB, SDK, and APP log prefixes. Add frame-only video and audio path counters, separate application and SDK failures, remove redundant byte and timeout counters, and keep vendor GetFrame timing tightly scoped to the actual API calls.

Update customer documentation and internal diagnostic text to match the event-driven metadata and SDK-owned frame IDs.
This commit is contained in:
Mark.lin
2026-09-15 10:04:59 +08:00
parent 268335bd40
commit d652f15369
11 changed files with 181 additions and 208 deletions
+2 -3
View File
@@ -20,12 +20,11 @@ typedef struct
int running;
int frame_held;
uint32_t event_queue_depth;
uint64_t frame_wait_timeouts;
uint64_t video_event_wakes;
uint64_t video_frames_from_lib;
uint64_t audio_dma_event_wakes;
uint64_t extra_audio_event_wakes;
uint64_t audio_frames_from_driver;
uint64_t audio_bytes_from_driver;
uint64_t audio_frames_from_lib;
uint64_t get_frame_timing_samples;
double get_frame_timing_average_us;
double get_frame_timing_max300_us;