-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samples: drivers: video: capture: Add format config
Add video format Kconfig for proper sample configuration. Signed-off-by: Lucas Tamborrino <[email protected]>
- Loading branch information
1 parent
ca09a4b
commit a5e56fb
Showing
2 changed files
with
92 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
mainmenu "Video capture sample application" | ||
|
||
menu "Video capture configuration" | ||
|
||
config VIDEO_FORMAT_HEIGHT | ||
int "Height of the video format" | ||
default 0 | ||
help | ||
Height of the video format. If set to 0, the default height is used. | ||
|
||
config VIDEO_FORMAT_WIDTH | ||
int "Width of the video format" | ||
default 0 | ||
help | ||
Width of the video format. If set to 0, the default width is used. | ||
|
||
choice VIDEO_PIXEL_FORMAT | ||
prompt "Pixel format of the video format" | ||
default VIDEO_PIXEL_FORMAT_DEFAULT | ||
|
||
config VIDEO_PIXEL_FORMAT_DEFAULT | ||
bool "Default" | ||
|
||
config VIDEO_PIXEL_FORMAT_BGGR8 | ||
bool "BGGR8" | ||
|
||
config VIDEO_PIXEL_FORMAT_GBRG8 | ||
bool "GBRG8" | ||
|
||
config VIDEO_PIXEL_FORMAT_GRBG8 | ||
bool "GRBG8" | ||
|
||
config VIDEO_PIXEL_FORMAT_RGGB8 | ||
bool "RGGB8" | ||
|
||
config VIDEO_PIXEL_FORMAT_RGB565 | ||
bool "RGB565" | ||
|
||
config VIDEO_PIXEL_FORMAT_XRGB32 | ||
bool "XRGB32" | ||
|
||
config VIDEO_PIXEL_FORMAT_YUYV | ||
bool "YUYV" | ||
|
||
config VIDEO_PIXEL_FORMAT_XYUV32 | ||
bool "XYUV32" | ||
|
||
config VIDEO_PIXEL_FORMAT_JPEG | ||
bool "JPEG" | ||
|
||
endchoice | ||
|
||
endmenu | ||
|
||
source "Kconfig.zephyr" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters