summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo.mondi@ideasonboard.com>2024-10-09 13:07:38 +0200
committerJacopo Mondi <jacopo.mondi@ideasonboard.com>2024-10-11 12:45:34 +0200
commit19698ea27c826a1daefe4e396ba7eb58da850b25 (patch)
tree750171505dd7dfed4dd0ea74988e534d69789bdb
parent302e7e60b1393d4afdefd0c12df982a00515c604 (diff)
[HACK] cam: Do not allocate buffers or queue requests
Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
-rw-r--r--src/apps/cam/camera_session.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/apps/cam/camera_session.cpp b/src/apps/cam/camera_session.cpp
index edc49b87..907c6074 100644
--- a/src/apps/cam/camera_session.cpp
+++ b/src/apps/cam/camera_session.cpp
@@ -307,6 +307,7 @@ int CameraSession::startCapture()
{
int ret;
+#if 0
/* Identify the stream with the least number of buffers. */
unsigned int nbuffers = UINT_MAX;
for (StreamConfiguration &cfg : *config_) {
@@ -351,6 +352,7 @@ int CameraSession::startCapture()
requests_.push_back(std::move(request));
}
+#endif
if (sink_) {
ret = sink_->start();
@@ -368,6 +370,7 @@ int CameraSession::startCapture()
return ret;
}
+#if 0
for (std::unique_ptr<Request> &request : requests_) {
ret = queueRequest(request.get());
if (ret < 0) {
@@ -387,6 +390,7 @@ int CameraSession::startCapture()
std::cout << "cam" << cameraIndex_
<< ": Capture until user interrupts by SIGINT"
<< std::endl;
+#endif
return 0;
}