14 #include <sys/types.h> 20 #include <libcamera/base/thread_annotations.h> 28 class DeviceEnumerator;
30 class CameraManager::Private :
public Extensible::Private,
public Thread
38 void addCamera(std::shared_ptr<Camera> camera) LIBCAMERA_TSA_EXCLUDES(mutex_);
39 void removeCamera(std::shared_ptr<Camera> camera) LIBCAMERA_TSA_EXCLUDES(mutex_);
46 void createPipelineHandlers();
47 void pipelineFactoryMatch(
const PipelineHandlerFactoryBase *factory);
48 void cleanup() LIBCAMERA_TSA_EXCLUDES(mutex_);
57 std::vector<
std::shared_ptr<Camera>> cameras_ LIBCAMERA_TSA_GUARDED_BY(mutex_);
59 ConditionVariable cv_;
60 bool initialized_ LIBCAMERA_TSA_GUARDED_BY(mutex_);
61 int status_ LIBCAMERA_TSA_GUARDED_BY(mutex_);
63 std::unique_ptr<DeviceEnumerator> enumerator_;
65 IPAManager ipaManager_;
66 ProcessManager processManager_;
Utilities to help constructing class interfaces.
Image Processing Algorithm module manager.
Top-level libcamera namespace.
Definition: backtrace.h:17
Definition: v4l2_pixelformat.h:60
#define LIBCAMERA_DECLARE_PUBLIC(klass)
Declare public data for a private class.
Private()
Construct an instance of an Extensible class private data.
Definition: class.cpp:194
virtual void run()
Main function of the thread.
Definition: thread.cpp:367
int start()
Start the camera manager.
Definition: camera_manager.cpp:311
Mutex classes with clang thread safety annotation.