mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-13 07:19:45 +03:00
test: v4l2_videodevice: Switch to FrameBuffer interface
The V4L2VideoDevice class can now operate using a FrameBuffer interface, switch all test cases to use it. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
cadae67e45
commit
f0d928b56e
6 changed files with 48 additions and 65 deletions
|
@ -17,10 +17,8 @@ protected:
|
|||
{
|
||||
const unsigned int bufferCount = 8;
|
||||
|
||||
pool_.createBuffers(bufferCount);
|
||||
|
||||
int ret = capture_->exportBuffers(&pool_);
|
||||
if (ret)
|
||||
int ret = capture_->exportBuffers(bufferCount, &buffers_);
|
||||
if (ret < 0)
|
||||
return TestFail;
|
||||
|
||||
ret = capture_->streamOn();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue