[libcamera-devel] [PATCH] test: v4l2_videodevice: buffer_sharing: Lower resolution to speed up test

Laurent Pinchart laurent.pinchart at ideasonboard.com
Fri Jul 12 14:33:50 CEST 2019


Speed up the test by lowering the resolution to the smallest vivid
supports, 320x180.

Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
 test/v4l2_videodevice/buffer_sharing.cpp | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/test/v4l2_videodevice/buffer_sharing.cpp b/test/v4l2_videodevice/buffer_sharing.cpp
index ede6ec7984a9..7b6a28fffb77 100644
--- a/test/v4l2_videodevice/buffer_sharing.cpp
+++ b/test/v4l2_videodevice/buffer_sharing.cpp
@@ -58,6 +58,15 @@ protected:
 			return TestFail;
 		}
 
+		format.size.width = 320;
+		format.size.height = 180;
+
+		ret = capture_->setFormat(&format);
+		if (ret) {
+			std::cout << "Failed to set capture format" << std::endl;
+			return TestFail;
+		}
+
 		ret = output_->setFormat(&format);
 		if (ret) {
 			std::cout << "Failed to set output format" << std::endl;
-- 
Regards,

Laurent Pinchart



More information about the libcamera-devel mailing list