- 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.
93 lines
2.4 KiB
CMake
93 lines
2.4 KiB
CMake
# GVFG_SDK_VERSION in the root CMakeLists.txt is the single version source.
|
|
project(gvfg LANGUAGES CXX)
|
|
|
|
set(GVFG_EXPORTS_FILE gvfg.def)
|
|
|
|
add_library(gvfg SHARED
|
|
${GVFG_EXPORTS_FILE}
|
|
include/gvfg_capture.h
|
|
include/gvfg_debug.h
|
|
src/gigabyte/gigabyte_capture_session.cpp
|
|
src/gigabyte/gigabyte_capture_session.h
|
|
src/gigabyte/gigabyte_driver_extensions.cpp
|
|
src/gigabyte/gigabyte_driver_extensions.h
|
|
src/gigabyte/gigabyte_device.cpp
|
|
src/gigabyte/gigabyte_device.h
|
|
src/gpu/d3d_conversion_pipeline.cpp
|
|
src/gpu/d3d_conversion_pipeline.h
|
|
src/gpu/gvfg_gpu_convert.cpp
|
|
src/gpu/gvfg_gpu_osd.cpp
|
|
src/gpu/gvfg_gpu_osd.h
|
|
src/gvfg_error_state.h
|
|
src/gvfg_capture.cpp
|
|
)
|
|
|
|
set_target_properties(gvfg PROPERTIES
|
|
AUTOMOC OFF
|
|
AUTOUIC OFF
|
|
AUTORCC OFF
|
|
)
|
|
|
|
target_include_directories(gvfg
|
|
PUBLIC
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include
|
|
PRIVATE
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/gigabyte
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/gpu
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../../third_party/GigabyteLib
|
|
)
|
|
|
|
target_compile_definitions(gvfg PRIVATE
|
|
GVFG_BUILD
|
|
GVFG_VERSION_STRING="${GVFG_SDK_VERSION}"
|
|
)
|
|
|
|
target_compile_definitions(gvfg PRIVATE
|
|
GVFG_INTERNAL_DIAGNOSTICS=$<IF:$<CONFIG:Debug>,1,0>
|
|
)
|
|
if (GVFG_EXPERIMENTAL_ZERO_COPY_OSD_INPLACE)
|
|
target_compile_definitions(gvfg PRIVATE GVFG_EXPERIMENTAL_ZERO_COPY_OSD_INPLACE=1)
|
|
endif()
|
|
|
|
target_link_libraries(gvfg PRIVATE
|
|
gvfg_osd_core
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../../third_party/GigabyteLib/GvfgSdk.lib"
|
|
setupapi
|
|
user32
|
|
dxgi
|
|
d3d11
|
|
D3DCompiler
|
|
)
|
|
|
|
if (MSVC)
|
|
target_compile_options(gvfg PRIVATE /utf-8 /EHsc)
|
|
endif()
|
|
|
|
if (MSVC AND GVFG_MINGW_DLLTOOL)
|
|
add_custom_command(TARGET gvfg POST_BUILD
|
|
COMMAND "${GVFG_MINGW_DLLTOOL}"
|
|
-d "${CMAKE_CURRENT_SOURCE_DIR}/${GVFG_EXPORTS_FILE}"
|
|
-D gvfg.dll
|
|
-l libgvfg.dll.a
|
|
WORKING_DIRECTORY "${CMAKE_ARCHIVE_OUTPUT_DIRECTORY}"
|
|
COMMENT "Generating MinGW import library for gvfg.dll"
|
|
VERBATIM
|
|
)
|
|
endif()
|
|
|
|
install(TARGETS gvfg
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
)
|
|
|
|
install(FILES include/gvfg_capture.h
|
|
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
|
)
|
|
|
|
if (MSVC AND GVFG_MINGW_DLLTOOL)
|
|
install(FILES "${CMAKE_ARCHIVE_OUTPUT_DIRECTORY}/libgvfg.dll.a"
|
|
DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
)
|
|
endif()
|