- Add gvfg_get_frame_layout() and gvfg_frame_layout_t for per-plane frame metadata without extending gvfg_frame_t - Update gvfg_preview to consume gvfg_get_frame_layout() before falling back to width-derived stride - Add optional gvfg_convert helper DLL for explicit snapshot/export conversion outside the core capture API - Support YUY2/Y210 conversion to BGRA8, RGB48, and RGBA64 helper frames - Add SAL annotations to public capture, preview, convert, and debug headers - Update Traditional Chinese API/package documentation for core, preview, and convert helper split
33 lines
623 B
CMake
33 lines
623 B
CMake
project(gvfg_convert LANGUAGES CXX)
|
|
|
|
add_library(gvfg_convert SHARED
|
|
include/gvfg_convert.h
|
|
src/gvfg_convert.cpp
|
|
)
|
|
|
|
set_target_properties(gvfg_convert PROPERTIES
|
|
AUTOMOC OFF
|
|
AUTOUIC OFF
|
|
AUTORCC OFF
|
|
)
|
|
|
|
target_include_directories(gvfg_convert
|
|
PUBLIC
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include
|
|
${CMAKE_SOURCE_DIR}/sdk/gvfg/include
|
|
PRIVATE
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src
|
|
)
|
|
|
|
target_compile_definitions(gvfg_convert PRIVATE
|
|
GVFG_CONVERT_BUILD
|
|
)
|
|
|
|
target_link_libraries(gvfg_convert PRIVATE
|
|
gvfg
|
|
)
|
|
|
|
if (MSVC)
|
|
target_compile_options(gvfg_convert PRIVATE /utf-8 /EHsc)
|
|
endif()
|