summaryrefslogtreecommitdiff
path: root/src/libcamera/camera.cpp
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund@ragnatech.se>2019-11-25 13:46:57 +0100
committerNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-01-12 16:10:38 +0100
commit6cd505ac89a6ee41865a2ecb32ed5f344544295d (patch)
tree68b4dc20fabb409489eb33a4c880effcb04dfa81 /src/libcamera/camera.cpp
parent07156a2713609e7f4b53e240167c7e460b244a71 (diff)
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>
Diffstat (limited to 'src/libcamera/camera.cpp')
-rw-r--r--src/libcamera/camera.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/libcamera/camera.cpp b/src/libcamera/camera.cpp
index 3fe40feb..f3a7578d 100644
--- a/src/libcamera/camera.cpp
+++ b/src/libcamera/camera.cpp
@@ -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;
}
/**