Files
GVFG_Standalone/GVFG_SDK/helpers/gvfg_playback/CMakeLists.txt
T
Mark.lin c8b2d0608a 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.
2026-10-29 09:02:54 +08:00

52 lines
2.1 KiB
CMake

# Public playback DLL; backend libraries remain implementation details.
enable_language(RC)
add_library(gvfg_playback SHARED
gvfg_playback.def
include/gvfg_playback.h
src/gvfg_playback.cpp
src/playback_timing.h
src/playback_debug.h
src/signal_card.h
src/signal_card.cpp
src/signal_card.rc
)
set_target_properties(gvfg_playback PROPERTIES AUTOMOC OFF AUTOUIC OFF AUTORCC OFF)
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
${CMAKE_CURRENT_SOURCE_DIR}/../gvfg_preview/src
)
target_compile_definitions(gvfg_playback PRIVATE GVFG_PLAYBACK_BUILD
GVFG_INTERNAL_DIAGNOSTICS=$<IF:$<CONFIG:Debug>,1,0>)
target_link_libraries(gvfg_playback PRIVATE gvfg_audio_playback gvfg_preview user32 gdi32 comctl32)
if(MSVC)
target_compile_options(gvfg_playback PRIVATE /utf-8 /EHsc)
endif()
if(MSVC AND GVFG_MINGW_DLLTOOL)
add_custom_command(TARGET gvfg_playback POST_BUILD
COMMAND "${GVFG_MINGW_DLLTOOL}"
-d "${CMAKE_CURRENT_SOURCE_DIR}/gvfg_playback.def"
-D gvfg_playback.dll -l libgvfg_playback.dll.a
WORKING_DIRECTORY "${CMAKE_ARCHIVE_OUTPUT_DIRECTORY}"
COMMENT "Generating MinGW import library for gvfg_playback.dll"
VERBATIM
)
install(FILES "${CMAKE_ARCHIVE_OUTPUT_DIRECTORY}/libgvfg_playback.dll.a"
DESTINATION ${CMAKE_INSTALL_LIBDIR})
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.
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/.