libcamera: v4l2_videodevice: Rename exportBuffers() to allocateBuffers()
To prepare for the rework of buffer allocation that will differentiate export and allocation, rename exportBuffers() to allocateBuffers(). Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
@@ -76,8 +76,8 @@ int BufferSource::allocate(const StreamConfiguration &config)
|
||||
return TestFail;
|
||||
}
|
||||
|
||||
if (video->exportBuffers(config.bufferCount, &buffers_) < 0) {
|
||||
std::cout << "Failed to export buffers" << std::endl;
|
||||
if (video->allocateBuffers(config.bufferCount, &buffers_) < 0) {
|
||||
std::cout << "Failed to allocate buffers" << std::endl;
|
||||
return TestFail;
|
||||
}
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ protected:
|
||||
return TestFail;
|
||||
}
|
||||
|
||||
ret = capture_->exportBuffers(bufferCount, &buffers_);
|
||||
ret = capture_->allocateBuffers(bufferCount, &buffers_);
|
||||
if (ret < 0) {
|
||||
std::cout << "Failed to allocate buffers" << std::endl;
|
||||
return TestFail;
|
||||
|
||||
@@ -38,9 +38,11 @@ protected:
|
||||
Timer timeout;
|
||||
int ret;
|
||||
|
||||
ret = capture_->exportBuffers(bufferCount, &buffers_);
|
||||
if (ret < 0)
|
||||
ret = capture_->allocateBuffers(bufferCount, &buffers_);
|
||||
if (ret < 0) {
|
||||
std::cout << "Failed to allocate buffers" << std::endl;
|
||||
return TestFail;
|
||||
}
|
||||
|
||||
capture_->bufferReady.connect(this, &CaptureAsyncTest::receiveBuffer);
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ protected:
|
||||
{
|
||||
const unsigned int bufferCount = 8;
|
||||
|
||||
int ret = capture_->exportBuffers(bufferCount, &buffers_);
|
||||
int ret = capture_->allocateBuffers(bufferCount, &buffers_);
|
||||
if (ret != bufferCount)
|
||||
return TestFail;
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ protected:
|
||||
{
|
||||
const unsigned int bufferCount = 8;
|
||||
|
||||
int ret = capture_->exportBuffers(bufferCount, &buffers_);
|
||||
int ret = capture_->allocateBuffers(bufferCount, &buffers_);
|
||||
if (ret < 0)
|
||||
return TestFail;
|
||||
|
||||
|
||||
@@ -112,15 +112,15 @@ protected:
|
||||
return TestFail;
|
||||
}
|
||||
|
||||
ret = capture->exportBuffers(bufferCount, &captureBuffers_);
|
||||
ret = capture->allocateBuffers(bufferCount, &captureBuffers_);
|
||||
if (ret < 0) {
|
||||
cerr << "Failed to export Capture Buffers" << endl;
|
||||
cerr << "Failed to allocate Capture Buffers" << endl;
|
||||
return TestFail;
|
||||
}
|
||||
|
||||
ret = output->exportBuffers(bufferCount, &outputBuffers_);
|
||||
ret = output->allocateBuffers(bufferCount, &outputBuffers_);
|
||||
if (ret < 0) {
|
||||
cerr << "Failed to export Output Buffers" << endl;
|
||||
cerr << "Failed to allocate Output Buffers" << endl;
|
||||
return TestFail;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user