summaryrefslogtreecommitdiff
path: root/Documentation/guides
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2024-01-04 17:15:44 +0200
committerKieran Bingham <kieran.bingham@ideasonboard.com>2024-01-09 15:39:04 +0000
commita9adb798e1daed8eaf33ae7a31f81ff74d4193ca (patch)
tree5f3ef972b1e1dd27a6651f5936c139ea0ee9cba6 /Documentation/guides
parent0e9585ff5bb1da9132be625874c16839debb1ab5 (diff)
utils: update-mojo.sh: Reject a dirty libcamera tree
If the libcamera tree is dirty committing the result of the mojo update will be messy. Bail out in that case. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Milan Zamazal <mzamazal@redhat.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'Documentation/guides')
0 files changed, 0 insertions, 0 deletions
tem/camera_metadata.h> #include <libcamera/base/class.h> #include <libcamera/base/mutex.h> #include <libcamera/camera_manager.h> #include "camera_hal_config.h" class CameraDevice; class CameraHalManager { public: ~CameraHalManager(); static CameraHalManager *instance(); int init(); std::tuple<CameraDevice *, int> open(unsigned int id, const hw_module_t *module); unsigned int numCameras() const; int getCameraInfo(unsigned int id, struct camera_info *info); void setCallbacks(const camera_module_callbacks_t *callbacks); private: LIBCAMERA_DISABLE_COPY_AND_MOVE(CameraHalManager) static constexpr unsigned int firstExternalCameraId_ = 1000; CameraHalManager(); static int32_t cameraLocation(const libcamera::Camera *cam); void cameraAdded(std::shared_ptr<libcamera::Camera> cam); void cameraRemoved(std::shared_ptr<libcamera::Camera> cam); CameraDevice *cameraDeviceFromHalId(unsigned int id) LIBCAMERA_TSA_REQUIRES(mutex_); std::unique_ptr<libcamera::CameraManager> cameraManager_; CameraHalConfig halConfig_; const camera_module_callbacks_t *callbacks_; std::vector<std::unique_ptr<CameraDevice>> cameras_ LIBCAMERA_TSA_GUARDED_BY(mutex_); std::map<std::string, unsigned int> cameraIdsMap_ LIBCAMERA_TSA_GUARDED_BY(mutex_); libcamera::Mutex mutex_; unsigned int numInternalCameras_; unsigned int nextExternalCameraId_; };