- add an internal DirectWrite/Direct2D OSD core for YUY2 and Y210 with configurable position, font size, RGB color, and up to 32 printable ASCII characters - expose per-channel OSD set/clear APIs and blend only the visible overlay rectangle on the GPU while preserving the frame read/release contract and tracking native versus processed buffer ownership - convert native YUY2/Y210 directly to BGRA8, RGB10A2, or NV12 with reusable output resources, avoiding unnecessary FP16 intermediates and scene copies - draw native-size and reduced previews directly to the swapchain and allocate an FP16 intermediate only for enlarged previews while retaining the existing upload queue and format support - bump the SDK version to 1.0.2, fix the installed customer API reference path, update conversion and OSD documentation, and remove the old 0922 SDK archive Validation: git diff --cached --check passed before commit. No SDK rebuild or hardware runtime validation was performed in this commit pass.
29 lines
488 B
CMake
29 lines
488 B
CMake
project(gvfg_osd_core LANGUAGES CXX)
|
|
|
|
add_library(gvfg_osd_core STATIC
|
|
include/gvfg_osd.h
|
|
src/gvfg_osd.cpp
|
|
)
|
|
|
|
set_target_properties(gvfg_osd_core PROPERTIES
|
|
AUTOMOC OFF
|
|
AUTOUIC OFF
|
|
AUTORCC OFF
|
|
)
|
|
|
|
target_include_directories(gvfg_osd_core
|
|
PUBLIC
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include
|
|
)
|
|
|
|
target_link_libraries(gvfg_osd_core PUBLIC
|
|
d2d1
|
|
dwrite
|
|
windowscodecs
|
|
ole32
|
|
)
|
|
|
|
if (MSVC)
|
|
target_compile_options(gvfg_osd_core PRIVATE /utf-8 /EHsc)
|
|
endif()
|