Update SDK 3.2 documentation and add English and Traditional Chinese versions

- Check the README, customer guides, API reference, and internal notes against the
  SDK 3.2.0 headers, export lists, and CMake rules. Fix stale versions, the OSD move to
  gvfg_osd.dll, the OSD example header, and missing APIs (HDMI audio info, the HDMI and
  chip structs, gvfg_render_osd_frame_bgra, gvfg_playback_enable_audio_reconnect).
- Document present_image returning EOUTPUT when nothing was presented, opt-in audio
  reconnect for EAUDIO, and whole-macropixel YUY2 row sizes.
- Make English the primary *.md for the README and customer documents, keep Traditional
  Chinese as *.zh-TW.md, and install both language versions.
- Update the GigabyteLib README version and checksum to 1.0.5 and redraw the
  architecture diagram for the Capture, OSD, and Playback DLLs.

Validation: git diff --cached --check passed. All relative links and anchors in the
changed Markdown files resolve, and the drawio XML parses with valid edges and
non-overlapping boxes. No build, cmake --install, or PDF regeneration was run, and the
diagram was not opened in draw.io.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-01 16:03:38 +08:00
co-authored by Claude Opus 5.5
parent 02c7004e8c
commit 784aa5c579
21 changed files with 3277 additions and 1044 deletions
+21 -10
View File
@@ -1,12 +1,20 @@
# GVFG OSD core
# GVFG OSD
`gvfg_osd_core` is an internal static library that generates a full-frame
YUV422 OSD surface when text settings change. It does not capture, process
live video frames, communicate with the driver, or present a preview. The
library is linked into `gvfg.dll`; it is not installed or shipped as a
separate customer DLL.
Since SDK 3.2.0, OSD is built as the `gvfg_osd` SHARED target and shipped as the
optional customer DLL `gvfg_osd.dll`, with the public header `gvfg_osd.h` and the
import library `gvfg_osd.lib` (`libgvfg_osd.dll.a` for MinGW). It exports
`gvfg_get_osd_fonts`, `gvfg_measure_osd_text`, `gvfg_render_osd_frame_bgra`,
`gvfg_set_channel_osd`, `gvfg_set_channel_osd_visible`, and
`gvfg_clear_channel_osd`. Channel OSD attaches to capture through the
`gvfg_control_frame_processor` export of `gvfg.dll`, which is not declared in any
public header, so `gvfg_osd.dll` must come from the same SDK build as `gvfg.dll`.
The helper supports:
The private OSD core (`src/gvfg_osd_core.h`, `src/gvfg_osd.cpp`) generates a
full-frame YUV422 OSD surface when text settings change. It does not capture,
communicate with the driver, or present a preview; the GPU blend into live
frames is in `src/gvfg_gpu_osd.cpp`.
The core supports:
- YUY2 and Y210 output
- printable ASCII text, up to 32 characters
@@ -23,7 +31,7 @@ at least `width` bytes per row.
`gvfg_osd_measure()` returns a conservative complete text box containing logical
spacing, glyph overhang, and a one-pixel guard on each edge. It is not a
pixel-tight raster bound. The public `gvfg_measure_osd_text()` API in `gvfg.dll`
pixel-tight raster bound. The public `gvfg_measure_osd_text()` API in `gvfg_osd.dll`
provides the same measurement without creating a capture handle or opening a
device. Font size must be non-zero; the SDK does not impose the viewer's
512-pixel UI limit.
@@ -45,14 +53,17 @@ uploaded on settings/geometry changes, not every frame. Hidden slots retain
their rasterized surfaces and textures; shader visibility bits implement show/hide
without rebuilding. If all slots are hidden, no blend or readback is performed.
Clearing a slot discards its configuration and surfaces. An oversized slot is
skipped independently, leaving capture and the other slot active. For non-zero-copy acquisition, the backend explicitly
skipped independently, leaving capture and the other slot active.
For non-zero-copy (copy-mode) acquisition, the backend explicitly
grants writable access to its currently held SDK-owned capture buffer: the
GPU result replaces only that rectangle in place, retaining the original
stride and size. No second full-frame copy or output-buffer resize is needed.
The backend frame stays held until the application's normal release, including
across signal-recovery requests. The application still receives read-only data.
By default, driver zero-copy acquisition grants no writable access. The SDK still
Driver zero-copy acquisition grants no writable access (the experimental in-place
zero-copy OSD path was removed in 3.2.0). The SDK
copies the complete native frame into independent output storage, replaces
the processed rectangle there, and releases the backend frame before delivery.
CPU code copies bytes but does not blend pixels. Text with no visible coverage