diff options
author | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2019-11-25 17:51:06 +0100 |
---|---|---|
committer | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2020-01-12 16:10:38 +0100 |
commit | a1c5450be573ebcb1a5acc6453b5fcfdaa9593a4 (patch) | |
tree | 5377b161d97616930a1031dc01a6d3fdbd694d20 /test/camera/capture.cpp | |
parent | 6cd505ac89a6ee41865a2ecb32ed5f344544295d (diff) |
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>
Diffstat (limited to 'test/camera/capture.cpp')
-rw-r--r-- | test/camera/capture.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/test/camera/capture.cpp b/test/camera/capture.cpp index de879ee4..b304d59c 100644 --- a/test/camera/capture.cpp +++ b/test/camera/capture.cpp @@ -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; } |