From 1a7f1610e9f823011de4393af8ec9c10aa6b2097 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Fri, 12 Jul 2019 15:33:03 +0300 Subject: test: v4l2_videodevice: buffer_sharing: Lower resolution to speed up test Lower the resolution to the smallest vivid supports, 320x180, in order to speed up the test. This isn't enough in itself as the frame rate also has to be configured, but the V4L2VideoDevice class doesn't support frame rate control yet. In the meantime the frame rate can be set manually with yavta or v4l2-ctl. Signed-off-by: Laurent Pinchart Reviewed-by: Paul Elder --- test/v4l2_videodevice/buffer_sharing.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test/v4l2_videodevice') diff --git a/test/v4l2_videodevice/buffer_sharing.cpp b/test/v4l2_videodevice/buffer_sharing.cpp index 1bc478fe..cc724b22 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; -- cgit v1.2.1