Commit 9d62132e authored by Davi Herculano's avatar Davi Herculano Committed by Henrik Brix Andersen
Browse files

samples: video: Add vertical flip option to capture



Add KConfig option in video/capture sample to
vertically flip the image.

Signed-off-by: default avatarDavi Herculano <herculanodavi@gmail.com>
parent b052a086
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -27,6 +27,11 @@ config VIDEO_CTRL_HFLIP
	help
	  If set, mirror the video frame horizontally

config VIDEO_CTRL_VFLIP
	bool "Mirror the video frame vertically"
	help
	  If set, mirror the video frame vertically

endmenu

source "Kconfig.zephyr"
+5 −0
Original line number Diff line number Diff line
@@ -196,6 +196,11 @@ int main(void)
		video_set_ctrl(video_dev, &ctrl);
	}

	if (IS_ENABLED(CONFIG_VIDEO_CTRL_VFLIP)) {
		ctrl.id = VIDEO_CID_VFLIP;
		video_set_ctrl(video_dev, &ctrl);
	}

	if (IS_ENABLED(CONFIG_TEST)) {
		ctrl.id = VIDEO_CID_TEST_PATTERN;
		video_set_ctrl(video_dev, &ctrl);