summaryrefslogtreecommitdiff
path: root/utils/tracepoints/analyze-ipa-trace.py
diff options
context:
space:
mode:
Diffstat (limited to 'utils/tracepoints/analyze-ipa-trace.py')
0 files changed, 0 insertions, 0 deletions
> * camera_manager.h - Camera management */ #ifndef __LIBCAMERA_CAMERA_MANAGER_H__ #define __LIBCAMERA_CAMERA_MANAGER_H__ #include <memory> #include <string> #include <vector> namespace libcamera { class Camera; class DeviceEnumerator; class EventDispatcher; class PipelineHandler; class CameraManager { public: int start(); void stop(); const std::vector<std::shared_ptr<Camera>> &cameras() const { return cameras_; } std::shared_ptr<Camera> get(const std::string &name); void addCamera(std::shared_ptr<Camera> camera); void removeCamera(Camera *camera); static CameraManager *instance(); void setEventDispatcher(std::unique_ptr<EventDispatcher> dispatcher); EventDispatcher *eventDispatcher(); private: CameraManager(); CameraManager(const CameraManager &) = delete; CameraManager &operator=(const CameraManager &) = delete; ~CameraManager(); std::unique_ptr<DeviceEnumerator> enumerator_; std::vector<std::shared_ptr<PipelineHandler>> pipes_; std::vector<std::shared_ptr<Camera>> cameras_; std::unique_ptr<EventDispatcher> dispatcher_; }; } /* namespace libcamera */ #endif /* __LIBCAMERA_CAMERA_MANAGER_H__ */