summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md10
1 files changed, 9 insertions, 1 deletions
diff --git a/README.md b/README.md
index ca81d649..45ae3a41 100644
--- a/README.md
+++ b/README.md
@@ -1 +1,9 @@
-libcamera: A complex camera support library for Linux, Android, and ChromeOS
+# libcamera: A complex camera support library for Linux, Android, and ChromeOS
+
+To build and install:
+```
+ meson build
+ cd build
+ ninja
+ ninja install
+```
an class="hl ppc">#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_->name(); } /** * \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 */