1# Copyright The Zephyr Project Contributors 2# SPDX-License-Identifier: Apache-2.0 3 4mainmenu "Video test pattern testing" 5 6menu "Video capture configuration" 7 8config TEST_PIXEL_FORMAT 9 string "Pixel format of the video frame" 10 help 11 Pixel format of the video frame. If not set, the default pixel format is used. 12 13config TEST_FRAME_HEIGHT 14 int "Height of the video frame" 15 default 0 16 help 17 Height of the video frame. If set to 0, the default height is used. 18 19config TEST_FRAME_WIDTH 20 int "Width of the video frame" 21 default 0 22 help 23 Width of the video frame. If set to 0, the default width is used. 24 25config TEST_FRAMES_TOTAL 26 int "Number of frames to test in total" 27 default 1000 28 help 29 Video hardware do not always produce valid frames immediately, at high FPS, there can 30 be a lot of frames completely black or otherwise invalid before the test pattern 31 to show-up, which would still be the expected behavior of the hardware. 32 33config TEST_PATTERN_CTRL 34 int "Value used for the test pattern menu control" 35 default 1 36 help 37 Some drivers support different types of test patterns and/or in a different order. 38 Control the menu CID value to select the correct "vertical color bar" pattern. 39 40config TEST_FRAMES_VALID 41 int "Number of valid frames to expect" 42 default 10 43 help 44 Number of frames after which consider the test successful. 45 A valid frame is a frame featuring the test pattern with colors close enough according 46 to CONFIG_TEST_LAB_THRESHOLD. 47 48config TEST_LAB_THRESHOLD 49 int "CIE LAB acceptance threshold" 50 default 10 51 help 52 Margin value to consider the color similarity to be close enough. 53 The default is 10 to allow slight difference to be ignored, and complete swaps to 54 always be detected. This can be raised in case the colors are all slightly off but 55 correctly ordered. 56 57endmenu 58 59source "Kconfig.zephyr" 60