Release SDK 1.1.0 with bounded OSD placement and delivery diagnostics

- expose stateless OSD text measurement and use matching single-line glyph bounds, overhang, and guard pixels to clamp placement within each frame without wrapping or truncating oversized text

- reuse the held SDK-owned capture buffer for non-zero-copy OSD, preserve its stride and size, and overwrite only the GPU-processed rectangle while retaining the backend hold until application release

- add internal timed and profiled frame reads with acquisition timing after the frame event wait, per-stage OSD wall times, and unchanged public frame timestamps and existing timing layouts

- isolate driver-buffer writes behind a default-OFF experimental build option, validate committed writable pages before ROI writes, retain independent-output fallback, and expose per-frame rejection details without changing vendor release rules

- bump the SDK version from 1.0.2 to 1.1.0 and document minor-version feature releases, patch-version bug fixes, placement behavior, ownership, diagnostics, and experimental DMA limitations

Validation: git diff --cached --check passed before commit. No SDK rebuild or Customer Demo regression suite was run in this commit pass. User-provided capture logs exercised delivery diagnostics and showed PAGE_READONLY fallback; successful driver-buffer writes and DMA ownership safety remain unverified.
This commit is contained in:
Mark.lin
2026-10-19 16:41:15 +08:00
parent f0beaff35f
commit b4403fe59a
16 changed files with 946 additions and 76 deletions
+13 -1
View File
@@ -28,7 +28,10 @@ typedef enum gvfg_osd_pixel_format_t
/*
* Generates an off-line OSD surface using the Arial system font. Text is
* restricted to printable ASCII and at most GVFG_OSD_MAX_TEXT_CHARACTERS
* characters. color_rgb is 0xRRGGBB.
* characters on one line without wrapping. color_rgb is 0xRRGGBB.
* x/y identify the top-left of the conservative measured text box (including
* glyph overhang and a one-pixel guard). They are clamped to keep that box
* inside the frame. Rendering returns EINVAL if the box cannot fit the frame.
* Output YUV uses BT.709 limited range. The mask is one coverage byte per
* pixel: 0 is transparent and 255 is fully covered.
*/
@@ -64,6 +67,15 @@ gvfg_osd_status_t gvfg_osd_create(
void gvfg_osd_destroy(
gvfg_osd_handle handle);
/* Conservative whole-text bounds in pixels, not pixel-tight raster bounds. */
gvfg_osd_status_t gvfg_osd_measure(
gvfg_osd_handle handle,
const char *text,
uint32_t text_length,
uint32_t font_size_px,
uint32_t *out_width,
uint32_t *out_height);
gvfg_osd_status_t gvfg_osd_render(
gvfg_osd_handle handle,
const gvfg_osd_config_t *config,