libcamera: pipeline: Remove explicit buffer handling
With the FrameBuffer interface in place there is no need for the Camera to call into the specific pipelines allocation and freeing of buffers as it no longer needs to be synchronized with buffer allocation by the application. Remove the function prototypes in the pipeline handler base class and fold the functionality in the pipelines start() and stop() functions where needed. A follow up patch will remove the now no-op Camera::allocateBuffers() and Camera::freeBuffers(). Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
@@ -726,12 +726,6 @@ int Camera::allocateBuffers()
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
int ret = pipe_->allocateBuffers(this, activeStreams_);
|
||||
if (ret) {
|
||||
LOG(Camera, Error) << "Failed to allocate buffers";
|
||||
return ret;
|
||||
}
|
||||
|
||||
state_ = CameraPrepared;
|
||||
|
||||
return 0;
|
||||
@@ -752,7 +746,7 @@ int Camera::freeBuffers()
|
||||
|
||||
state_ = CameraConfigured;
|
||||
|
||||
return pipe_->freeBuffers(this, activeStreams_);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user