Consolidate playback APIs and add standalone OSD bitmap rendering

- move public PCM, image and presentation types into gvfg_playback.h and remove the separate backend headers from source and installation

- keep WASAPI and D3D backends private while preserving the existing public type names, fields and static backend integration

- move detailed preview delivery counters into a private header and expose their playback query only through the Debug diagnostics API

- retain public preview information and basic presentation statistics, mark EQUEUE_FULL as reserved, and document capacity limits as advanced settings with recommended defaults

- refresh customer guides, API reference and error handling for the single-header interface, presentation counter limits and EAUDIO handle-recreation policy

- add SDK-owned standalone premultiplied BGRA text rendering with transparent backgrounds, measured dimensions, thread-local snapshot lifetime and validated output bounds

Validation: git diff --cached --check passed. Release gvfg_playback and Customer Sample builds, standalone C/C++ header checks, Debug playback syntax checks and Release export inspection passed earlier in this session. Final follow-up changes affect comments and documentation only. No runtime or hardware playback validation was performed. The existing Release gvfg target was also checked and was up to date. OSD rendering changes were source-reviewed; no new bitmap or hardware test was run in this commit pass. Capture debug exports are unchanged.
This commit is contained in:
Mark.lin
2026-11-04 16:53:41 +08:00
parent d6935df9ae
commit 5ebe03a2bb
23 changed files with 262 additions and 156 deletions
@@ -14,8 +14,6 @@ set_target_properties(gvfg_playback PROPERTIES AUTOMOC OFF AUTOUIC OFF AUTORCC O
target_include_directories(gvfg_playback
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/include
${CMAKE_CURRENT_SOURCE_DIR}/../gvfg_preview/include
${CMAKE_CURRENT_SOURCE_DIR}/../gvfg_audio_playback/include
PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/src
${CMAKE_CURRENT_SOURCE_DIR}/../gvfg_audio_playback/src
@@ -42,10 +40,8 @@ endif()
install(TARGETS gvfg_playback
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
# Backend headers supply the frame/format/stat types used by the public API.
# The unified public header contains all playback types and declarations.
install(FILES include/gvfg_playback.h
../gvfg_audio_playback/include/gvfg_audio_playback.h
../gvfg_preview/include/gvfg_preview.h
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
# This README describes private internals. Customer guides are installed by
# the SDK root with the same relative layout as docs/.