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:
parent
6cd505ac89
commit
a1c5450be5
10 changed files with 22 additions and 223 deletions
|
@ -87,11 +87,6 @@ protected:
|
|||
return TestFail;
|
||||
}
|
||||
|
||||
if (camera_->allocateBuffers()) {
|
||||
cout << "Failed to allocate buffers" << endl;
|
||||
return TestFail;
|
||||
}
|
||||
|
||||
Stream *stream = cfg.stream();
|
||||
|
||||
int ret = allocator_->allocate(stream);
|
||||
|
@ -158,11 +153,6 @@ protected:
|
|||
return TestFail;
|
||||
}
|
||||
|
||||
if (camera_->freeBuffers()) {
|
||||
cout << "Failed to free buffers" << endl;
|
||||
return TestFail;
|
||||
}
|
||||
|
||||
return TestPass;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue