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:
@@ -205,7 +205,7 @@ extern "C"
|
||||
int row_stride_bytes; /* Byte distance between the starts of adjacent rows. */
|
||||
int pixel_format; /* gvfg_pixel_format_t value. */
|
||||
int bit_depth; /* Bits per color channel of the native frame. */
|
||||
uint64_t frame_id; /* GigabyteLib GVFG_VIDEO_INFO.FrameCount. */
|
||||
uint64_t frame_id; /* SDK delivery sequence; starts at 1 for each channel start. */
|
||||
uint64_t timestamp_ns; /* Monotonic SDK delivery time; same clock domain as audio. */
|
||||
} gvfg_frame_t;
|
||||
|
||||
@@ -217,7 +217,7 @@ extern "C"
|
||||
uint32_t channels; /* Interleaved PCM channel count. */
|
||||
uint32_t bits_per_sample; /* Bits in each native PCM sample. */
|
||||
uint32_t reserved;
|
||||
uint64_t frame_id; /* GigabyteLib GVFG_AUDIO_INFO.FrameCount. */
|
||||
uint64_t frame_id; /* SDK delivery sequence; starts at 1 for each channel start. */
|
||||
uint64_t timestamp_ns; /* Monotonic SDK delivery time; same clock domain as video. */
|
||||
} gvfg_audio_frame_t;
|
||||
|
||||
@@ -625,9 +625,8 @@ extern "C"
|
||||
|
||||
/*
|
||||
* Copy the most recent detailed fault or rejected API call for one
|
||||
* channel. Event-poll timeouts are not stored; frame-read timeouts currently
|
||||
* retain the backend timeout detail. A successful gvfg_start_channel()
|
||||
* begins a new diagnostic lifetime.
|
||||
* channel. Normal frame-read and event-poll timeouts are not stored.
|
||||
* A successful gvfg_start_channel() begins a new diagnostic lifetime.
|
||||
*/
|
||||
GVFG_API gvfg_status_t gvfg_get_channel_last_error_detail(
|
||||
GVFG_PARAM_IN gvfg_handle handle,
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user