summaryrefslogtreecommitdiff
path: root/Documentation/docs.rst
AgeCommit message (Expand)Author
2021-08-09libcamera: Rename 'method' to 'function'Laurent Pinchart
2020-06-05docs: Markup LD_PRELOAD as codeMarvin Schmidt
2020-06-05docs: Remove trailing whitespaceMarvin Schmidt
2020-06-05docs: Remove stray HTML tagsMarvin Schmidt
2020-04-15licenses: Add SPDX headers to RST documentationLaurent Pinchart
2019-10-23Documentation: Generate local TOC on demandLaurent Pinchart
2019-10-23Documentation: Link to API section in DocsLaurent Pinchart
2019-07-10Documentation: Fix trivial spelling errorKieran Bingham
2018-12-14Documentation: Remove | on the left side of diagramsLaurent Pinchart
2018-12-14Documentation: Add architecture documentationLaurent Pinchart
#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 */