diff options
author | Jacopo Mondi <jacopo.mondi@ideasonboard.com> | 2024-10-09 13:07:38 +0200 |
---|---|---|
committer | Jacopo Mondi <jacopo.mondi@ideasonboard.com> | 2024-10-11 12:45:34 +0200 |
commit | 19698ea27c826a1daefe4e396ba7eb58da850b25 (patch) | |
tree | 750171505dd7dfed4dd0ea74988e534d69789bdb /src | |
parent | 302e7e60b1393d4afdefd0c12df982a00515c604 (diff) |
[HACK] cam: Do not allocate buffers or queue requests
Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/apps/cam/camera_session.cpp | 4 |
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; } |