diff --git a/core/libcamera_app.cpp b/core/libcamera_app.cpp index 233c9647..3d6a353b 100644 --- a/core/libcamera_app.cpp +++ b/core/libcamera_app.cpp @@ -773,6 +773,11 @@ libcamera::Stream *LibcameraApp::GetMainStream() const return nullptr; } +libcamera::CameraManager *LibcameraApp::GetCameraManager() const +{ + return camera_manager_.get(); +} + std::vector> LibcameraApp::Mmap(FrameBuffer *buffer) const { auto item = mapped_buffers_.find(buffer); diff --git a/core/libcamera_app.hpp b/core/libcamera_app.hpp index 965fb391..8046bb71 100644 --- a/core/libcamera_app.hpp +++ b/core/libcamera_app.hpp @@ -119,6 +119,12 @@ class LibcameraApp Stream *LoresStream(StreamInfo *info = nullptr) const; Stream *GetMainStream() const; + CameraManager *GetCameraManager() const; + std::vector> GetCameras() + { + return GetCameras(camera_manager_); + } + std::vector> Mmap(FrameBuffer *buffer) const; void ShowPreview(CompletedRequestPtr &completed_request, Stream *stream);