12 #include <string_view>
13 #include <sys/types.h>
16 #include <libcamera/base/class.h>
17 #include <libcamera/base/object.h>
26 LIBCAMERA_DECLARE_PRIVATE()
34 std::vector<std::shared_ptr<Camera>>
cameras()
const;
35 std::shared_ptr<Camera>
get(std::string_view
id);
37 static const std::string &
version() {
return version_; }
45 static const std::string version_;
Provide access and manage all cameras in the system.
Definition: camera_manager.h:25
std::shared_ptr< Camera > get(std::string_view id)
Get a camera based on ID.
Definition: camera_manager.cpp:384
std::vector< std::shared_ptr< Camera > > cameras() const
Retrieve all available cameras.
Definition: camera_manager.cpp:364
static const std::string & version()
Retrieve the libcamera version string.
Definition: camera_manager.h:37
int start()
Start the camera manager.
Definition: camera_manager.cpp:324
Signal< std::shared_ptr< Camera > > cameraAdded
Notify of a new camera added to the system.
Definition: camera_manager.h:39
Signal< std::shared_ptr< Camera > > cameraRemoved
Notify of a new camera removed from the system.
Definition: camera_manager.h:40
void stop()
Stop the camera manager.
Definition: camera_manager.cpp:346
~CameraManager()
Destroy the camera manager.
Definition: camera_manager.cpp:307
Generic signal and slot communication mechanism.
Definition: signal.h:39
Top-level libcamera namespace.
Definition: bound_method.h:15
Signal & slot implementation.