Add lcameraBuff Stage 2 plugin with YUV attach and unit tests.

Introduce params parsing, pixel/format decisions, capture layout, shared
YuvStimProducer per camera, and channel stimulus buffers with attach flow.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-14 11:03:19 -04:00
parent 809861be2b
commit e7b7a311f7
18 changed files with 1698 additions and 0 deletions
@@ -0,0 +1,27 @@
add_executable(lcameraBuff_unit_tests
lcameraBuffParams_tests.cpp
pixelAndColorFormatDecisions_tests.cpp
yuvLayoutClassification_tests.cpp
)
target_include_directories(lcameraBuff_unit_tests PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/stimBuffApis/lcameraBuff
${CMAKE_SOURCE_DIR}/commonLibs/lcameraDev
${CMAKE_SOURCE_DIR}/libspinscale/tests
${CMAKE_SOURCE_DIR}/tests/fixtures
${CMAKE_SOURCE_DIR}/include
${CMAKE_BINARY_DIR}/include
)
target_link_libraries(lcameraBuff_unit_tests
gtest_main
lcameraBuff
spinscale_test_support
${Boost_LIBRARIES}
${OPENCL_LIBRARIES}
)
add_dependencies(lcameraBuff_unit_tests gtest_main spinscale_test_support)
add_test(NAME lcameraBuff_unit_tests COMMAND lcameraBuff_unit_tests)