Skip to content

Commit 4378aa8

Browse files
committed
[UT][WATERMARK] add gvawatermark display config parsing and behavioral tests
Add GStreamer Check tests for displ-cfg acceptance (all 10 config keys), behavioral verification (show-labels toggles text rendering, thickness scales pixel count, show-roi/hide-roi filter ROIs), edge cases (show-roi+hide-roi conflict where show-roi wins, invalid config value triggers pipeline error, multiple ROIs produce more pixels), and a design-revealing test (show-labels=false silently disables show-roi parsing due to nesting in parse_displ_config). Not tested: font-scale/font-type/draw-txt-bg/text-x/text-y pixel-level behavioral verification, tensor-driven rendering (landmarks, masks, keypoints, OBB), displ-avgfps integration, VA/GPU render path. Signed-off-by: Walid <walid.aly@intel.com>
1 parent 7b8f4d4 commit 4378aa8

File tree

4 files changed

+443
-1
lines changed

4 files changed

+443
-1
lines changed

tests/unit_tests/check/elements/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ==============================================================================
2-
# Copyright (C) 2018-2025 Intel Corporation
2+
# Copyright (C) 2018-2026 Intel Corporation
33
#
44
# SPDX-License-Identifier: MIT
55
# ==============================================================================
@@ -10,6 +10,7 @@ add_subdirectory(classification)
1010
add_subdirectory(metaconvert)
1111
add_subdirectory(metapublish)
1212
add_subdirectory(fpscounter)
13+
add_subdirectory(watermark)
1314
add_subdirectory(properties)
1415

1516
if(${ENABLE_AUDIO_INFERENCE_ELEMENTS})
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# ==============================================================================
2+
# Copyright (C) 2026 Intel Corporation
3+
#
4+
# SPDX-License-Identifier: MIT
5+
# ==============================================================================
6+
7+
add_subdirectory(test_watermark)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# ==============================================================================
2+
# Copyright (C) 2026 Intel Corporation
3+
#
4+
# SPDX-License-Identifier: MIT
5+
# ==============================================================================
6+
7+
set(COMMON_LIBS test_common test_utils)
8+
9+
# --- Display config parsing tests ---
10+
set(TARGET_CONFIG "test_gvawatermark_config")
11+
add_executable(${TARGET_CONFIG} ${CMAKE_CURRENT_SOURCE_DIR}/test_watermark_config.cpp)
12+
target_link_libraries(${TARGET_CONFIG} PRIVATE ${COMMON_LIBS})
13+
add_test(NAME ${TARGET_CONFIG} COMMAND ${TARGET_CONFIG} WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})

0 commit comments

Comments
 (0)