[RFC PATCH v2 00/16] apps: lc-compliance: Multi-stream tests
Barnabás Pőcze
pobrn at protonmail.com
Tue Jan 14 19:21:46 CET 2025
This changeset adds multi-stream tests based on the last two commits of
https://patchwork.libcamera.org/project/libcamera/list/?series=4234
Similarly, only two commits here deal with multi-stream tests directly:
* Support multiple streams in helpers
* Add multi-stream tests
Most other changes are non-functional changes.
One notable difference compared to the last patch of the aforementioned
series is that no new test is created, the current tests are kept
and are simply run with multiple streams.
Another notable change is that the `CaptureBalanced` and `CaptureUnbalanced`
are merged into the `Capture` base class.
Changes in v2:
* add a couple smalle `EventLoop` changes
* remove https://patchwork.libcamera.org/patch/22442/
* merge `CaptureBalanced` and `CaptureUnbalanced`
* run request completion handler in "main" thread
Barnabás Pőcze (16):
apps: common: event_loop: Take callbacks by rvalue ref
apps: common: event_loop: Disable copy/move
apps: common: event_loop: Use `std::deque` instead of `std::list`
apps: common: event_loop: Use single event source for deferred calls
apps: lc-compliance: Initialize `CameraManager` pointer in
`Environment`
apps: lc-compliance: Put tests into anonymous namespace
apps: lc-compliance: Optimize `std::shared_ptr` usage
apps: lc-compliance: Remove redundant getter call
apps: lc-compliance: Don't allocate `FrameBufferAllocator` dynamically
apps: lc-compliance: Use `std::vector` for argument array
apps: lc-compliance: Use array instead of `std::vector`
apps: lc-compliance: Add message to `GTEST_SKIP()`
apps: lc-compliance: Merge `CaptureBalanced` and `CaptureUnbalanced`
apps: lc-compliance: Support multiple streams in helpers
apps: lc-compliance: Add multi-stream tests
apps: lc-compliance: Run request completion handler in "main" thread
src/apps/common/event_loop.cpp | 64 +++---
src/apps/common/event_loop.h | 22 +-
src/apps/lc-compliance/environment.h | 2 +-
src/apps/lc-compliance/helpers/capture.cpp | 217 +++++++++---------
src/apps/lc-compliance/helpers/capture.h | 54 ++---
src/apps/lc-compliance/main.cpp | 42 +---
src/apps/lc-compliance/tests/capture_test.cpp | 100 ++++----
7 files changed, 243 insertions(+), 258 deletions(-)
--
2.48.0
More information about the libcamera-devel
mailing list