/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* Copyright (C) 2019, Google Inc.
*
* libcamera V4L2 API tests
*/
#include "v4l2_videodevice_test.h"
class RequestBuffersTest : public V4L2VideoDeviceTest
{
public:
RequestBuffersTest()
: V4L2VideoDeviceTest("vimc", "Raw Capture 0") {}
protected:
int run()
{
const unsigned int bufferCount = 8;
int ret = capture_->allocateBuffers(bufferCount, &buffers_);
if (ret != bufferCount)
return TestFail;
return TestPass;
}
};
TEST_REGISTER(RequestBuffersTest)
eader'>
blob: 6dcb09632796efaa2c3ac72fc4709063bfba1ec8 (
plain)
1
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-alert-triangle"><path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12.01" y2="17"></line></svg>
|