summaryrefslogtreecommitdiff
path: root/src/lc-compliance/simple_capture.h
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund@ragnatech.se>2021-02-05 16:25:10 +0100
committerNiklas Söderlund <niklas.soderlund@ragnatech.se>2021-04-12 10:48:56 +0200
commit210b81104730d32c47a689e3217f58f344c50f8c (patch)
treede77bda6441e441ca11716c1893c1dfd43274e43 /src/lc-compliance/simple_capture.h
parent02bc1108578e8b8eb68fa7d9ae3eeea558723931 (diff)
lc-compliance: Add test stopping single stream with requests queued
Add a test which stops a camera while requests are still queued. This intends to test cleanup paths where requests are dequeued from video devices in an uncompleted state. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Acked-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Tested-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Tested-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>
Diffstat (limited to 'src/lc-compliance/simple_capture.h')
-rw-r--r--src/lc-compliance/simple_capture.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lc-compliance/simple_capture.h b/src/lc-compliance/simple_capture.h
index 3a6afc53..4693c134 100644
--- a/src/lc-compliance/simple_capture.h
+++ b/src/lc-compliance/simple_capture.h
@@ -51,4 +51,18 @@ private:
unsigned int captureLimit_;
};
+class SimpleCaptureUnbalanced : public SimpleCapture
+{
+public:
+ SimpleCaptureUnbalanced(std::shared_ptr<libcamera::Camera> camera);
+
+ Results::Result capture(unsigned int numRequests);
+
+private:
+ void requestComplete(libcamera::Request *request) override;
+
+ unsigned int captureCount_;
+ unsigned int captureLimit_;
+};
+
#endif /* __LC_COMPLIANCE_SIMPLE_CAPTURE_H__ */