diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-07-12 15:33:03 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-07-13 07:47:36 +0300 |
commit | 1a7f1610e9f823011de4393af8ec9c10aa6b2097 (patch) | |
tree | d5286e7f7e862101b5d09f6f7b9306c2940236c4 /test/v4l2_videodevice | |
parent | 3e14a1bcb0557e73718d12cd7ef113940472a934 (diff) |
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 <laurent.pinchart@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Diffstat (limited to 'test/v4l2_videodevice')
-rw-r--r-- | test/v4l2_videodevice/buffer_sharing.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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; |