summaryrefslogtreecommitdiff
path: root/src/qcam/assets/feathericons/paperclip.svg
blob: b1f69b7a7bb930bc16dfe9c6cb643092752db650 (plain)
1
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-paperclip"><path d="M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"></path></svg>
* * camera_controls.cpp - Camera controls */ #include "libcamera/internal/camera_controls.h" #include <libcamera/camera.h> #include <libcamera/controls.h> /** * \file camera_controls.h * \brief Controls for Camera instances */ namespace libcamera { /** * \class CameraControlValidator * \brief A control validator for Camera instances * * This ControlValidator specialisation validates that controls exist in the * Camera associated with the validator. */ /** * \brief Construst a CameraControlValidator for the \a camera * \param[in] camera The camera */ CameraControlValidator::CameraControlValidator(Camera *camera) : camera_(camera) { } const std::string &CameraControlValidator::name() const { return camera_->id(); } /** * \brief Validate a control * \param[in] id The control ID * \return True if the control is valid, false otherwise */ bool CameraControlValidator::validate(unsigned int id) const { const ControlInfoMap &controls = camera_->controls(); return controls.find(id) != controls.end(); } } /* namespace libcamera */