Add dual-slot font-selectable OSD and privatize playback diagnostics for SDK 3.0.0
- replace the single-overlay API with two independently configured OSD slots per channel, simplify NUL-terminated text/font settings, and add explicit visibility controls that preserve cached glyphs separately from Clear - enumerate installed Windows font families as an SDK-owned UTF-8 list without callbacks or caller-side free, refresh installed fonts on demand, and use the selected family consistently for measurement and rendering with invalid/missing-font rejection - retain per-slot YUV and A8 mask caches, blend slot 1 over slot 0 in one GPU dispatch/readback, preserve hidden surfaces, and skip oversized slots independently while capture and the other slot continue - move detailed playback core statistics to a private Debug-only header/export, remove the public legacy statistics query and compatibility layouts, and retain public preview/delivery statistics - bump the SDK major version to 3.0.0 for the breaking OSD and playback API changes and document matching header, import-library and runtime deployment requirements - refresh the capture/playback guides, internal build notes and API reference, document all 51 public Capture/Playback functions, add checked OSD usage examples, and regenerate the branded 23-page PDF Validation: git diff --cached --check and public API documentation coverage checks passed. The regenerated PDF passed text/content checks and visual review of its rendered pages, including the OSD types, API contracts and examples. Earlier session SDK Release compilation and synthetic YUY2/Y210 blending checks passed; no new build, hardware capture, FPGA upload or long-duration runtime validation was performed during this commit pass.
This commit is contained in:
@@ -59,30 +59,6 @@ typedef struct {
|
||||
gvfg_preview_frame_t image;
|
||||
uint64_t timestamp_ns; /* Common monotonic delivery clock, NOT UTC. */
|
||||
} gvfg_playback_video_frame_t;
|
||||
typedef struct {
|
||||
uint32_t struct_size;
|
||||
int running;
|
||||
int buffering;
|
||||
gvfg_playback_status_t last_error;
|
||||
uint64_t video_submitted;
|
||||
uint64_t video_processed; /* Includes hidden frames and counted late/skipped previews. */
|
||||
uint64_t video_presented;
|
||||
uint64_t audio_submitted;
|
||||
uint64_t queue_rejections;
|
||||
uint64_t rebuffer_count;
|
||||
uint64_t video_queue_bytes;
|
||||
uint32_t video_queue_frames;
|
||||
double audio_queue_ms;
|
||||
uint64_t video_timestamp_ns;
|
||||
uint64_t audio_timestamp_ns; /* Estimated output position, NOT acoustic time. */
|
||||
int64_t av_difference_ns; /* audio - video; valid only with both clocks. */
|
||||
double audio_rate_ratio;
|
||||
uint64_t video_dropped; /* Late or GPU-busy preview frames; never audio/recording loss. */
|
||||
int sync_degraded; /* Independent best-effort playback; capture may continue. */
|
||||
uint64_t sync_fallbacks;
|
||||
uint64_t audio_dropped_frames; /* PCM frames discarded from the core queue, not device padding. */
|
||||
} gvfg_playback_stats_t;
|
||||
|
||||
GVFG_PLAYBACK_API void gvfg_playback_default_config(gvfg_playback_config_t *config);
|
||||
GVFG_PLAYBACK_API gvfg_playback_status_t gvfg_playback_create(gvfg_playback *out);
|
||||
/* A null HWND hides video while preserving its timeline. Attach on HWND thread. */
|
||||
@@ -127,7 +103,6 @@ GVFG_PLAYBACK_API gvfg_playback_status_t gvfg_playback_set_sync_enabled(gvfg_pla
|
||||
GVFG_PLAYBACK_API gvfg_playback_status_t gvfg_playback_reset_timeline(gvfg_playback p);
|
||||
GVFG_PLAYBACK_API gvfg_playback_status_t gvfg_playback_stop(gvfg_playback p);
|
||||
GVFG_PLAYBACK_API void gvfg_playback_destroy(gvfg_playback p);
|
||||
GVFG_PLAYBACK_API gvfg_playback_status_t gvfg_playback_get_stats(gvfg_playback p, gvfg_playback_stats_t *stats);
|
||||
GVFG_PLAYBACK_API gvfg_playback_status_t gvfg_playback_get_preview_info(gvfg_playback p, gvfg_preview_info_t *info);
|
||||
GVFG_PLAYBACK_API gvfg_playback_status_t gvfg_playback_get_preview_stats(gvfg_playback p, gvfg_preview_stats_t *stats);
|
||||
GVFG_PLAYBACK_API gvfg_playback_status_t gvfg_playback_get_delivery_stats(gvfg_playback p, gvfg_preview_delivery_stats_t *stats);
|
||||
|
||||
Reference in New Issue
Block a user