Add HDMI audio input queries and split OSD into a helper in GVFG SDK 3.2
- Expose HDMI audio input information through the capture API and refresh the bundled Gigabyte library. - Move OSD rendering into gvfg_osd.dll, connect channel OSD through the capture frame processor, and remove the experimental in-place zero-copy OSD path. - Update playback integration, the customer API documentation, and the internal build guide. Validation: git diff --cached --check passed. The MSVC Release SDK build passed. Capture hardware and runtime behavior were not tested.
This commit is contained in:
@@ -77,38 +77,3 @@ to application receipt is acquisition plus OSD/delivery cost. Waiting for the
|
||||
next frame is excluded. The public frame timestamp and old timed-read ABI are
|
||||
unchanged; this uses a separate internal result type and export.
|
||||
Do not ship the internal debug header in customer packages.
|
||||
|
||||
### Unsafe local zero-copy experiment (default OFF)
|
||||
|
||||
Set `GVFG_EXPERIMENTAL_ZERO_COPY_OSD_INPLACE=ON` in the standalone SDK's
|
||||
CMake configuration, rebuild `gvfg.dll` and its import library, then rebuild
|
||||
the srcroot viewer against the matching SDK. Enable zero-copy and apply OSD.
|
||||
This is an SDK build option, not the viewer console option.
|
||||
|
||||
The experimental backend supplies the original mutable vendor pointer, without
|
||||
casting away const on the public API. Before processing, `VirtualQuery` checks
|
||||
the entire destination ROI span for committed `PAGE_READWRITE` pages; readonly,
|
||||
guard, copy-on-write, and failed queries fall back to independent output and a
|
||||
full-frame copy. Permissions are checked again immediately before ROI writes;
|
||||
failure at that point returns `GVFG_EIO` without writing. No `VirtualProtect`
|
||||
or vendor release contract change is used. Successful in-place processing
|
||||
retains the backend hold until normal application frame release.
|
||||
|
||||
WARNING: these checks do not prevent concurrent DMA, buffer reuse, or a mapping
|
||||
change after the check. Corruption and access violations remain possible; C++
|
||||
exception handling is not an access-violation safety guarantee. Do not ship this
|
||||
configuration. A successful capture does not establish driver ownership safety.
|
||||
|
||||
The viewer warns at startup and labels each 300-frame diagnostic batch as actual
|
||||
driver-buffer writes, fallback copies, or no in-place processing. Flags use the
|
||||
separate `gvfg_debug_get_channel_osd_experiment_flags` export; existing timing
|
||||
struct layouts stay unchanged. Revert by setting the option OFF and rebuilding
|
||||
the SDK. The client-facing frame pointer remains read-only in all modes.
|
||||
|
||||
Fallback batches also report the final frame's first rejected region: a readable
|
||||
reason, native Protect/State/Type, VirtualQuery return byte count, and Win32 error
|
||||
(captured immediately only when VirtualQuery returns zero). Other frames may
|
||||
have different reasons. This uses the separate internal
|
||||
`gvfg_debug_get_channel_osd_page_check` export, queried while the frame is held;
|
||||
rebuild both SDK and viewer together. No per-frame logging or permission changes
|
||||
are introduced. Zero Win32 error does not imply a writable page.
|
||||
|
||||
Reference in New Issue
Block a user