libcamera: camera: Remove the prepared state
With the FrameBuffer rework completed there is no reason to keep the camera prepared state around as buffer allocations are now decoupled from the camera state. Remove the camera state simplifying the API. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
@@ -42,12 +42,6 @@ int Capture::run(EventLoop *loop, const OptionsParser::Options &options)
|
||||
return ret;
|
||||
}
|
||||
|
||||
ret = camera_->allocateBuffers();
|
||||
if (ret) {
|
||||
std::cerr << "Failed to allocate buffers" << std::endl;
|
||||
return ret;
|
||||
}
|
||||
|
||||
camera_->requestCompleted.connect(this, &Capture::requestComplete);
|
||||
|
||||
if (options.isSet(OptFile)) {
|
||||
@@ -67,8 +61,6 @@ int Capture::run(EventLoop *loop, const OptionsParser::Options &options)
|
||||
writer_ = nullptr;
|
||||
}
|
||||
|
||||
camera_->freeBuffers();
|
||||
|
||||
delete allocator;
|
||||
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user