libcamera: include/libcamera/internal/camera_controls.h Source File

libcamera v0.0.1 Supporting cameras in Linux since 2019

camera_controls.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: LGPL-2.1-or-later */
2/*
3 * Copyright (C) 2019, Google Inc.
4 *
5 * camera_controls.h - Camera controls
6 */
7
8#pragma once
9
10#include "libcamera/internal/control_validator.h"
11
12namespace libcamera {
13
14class Camera;
15
16 class CameraControlValidator final : public ControlValidator
17{
18public:
19 CameraControlValidator(Camera *camera);
20
21 const std::string &name() const override;
22 bool validate(unsigned int id) const override;
23
24private:
25 Camera *camera_;
26};
27
28} /* namespace libcamera */
libcamera::CameraControlValidator
A control validator for Camera instances.
Definition: camera_controls.h:17
libcamera::CameraControlValidator::validate
bool validate(unsigned int id) const override
Validate a control.
Definition: camera_controls.cpp:47
libcamera::CameraControlValidator::CameraControlValidator
CameraControlValidator(Camera *camera)
Construst a CameraControlValidator for the camera.
Definition: camera_controls.cpp:32
libcamera::CameraControlValidator::name
const std::string & name() const override
Retrieve the name of the object associated with the validator.
Definition: camera_controls.cpp:37
libcamera::Camera
Camera device.
Definition: camera.h:87
libcamera::ControlValidator
Interface for the control validator.
Definition: control_validator.h:17
control_validator.h
Abstract control validator.
libcamera
Top-level libcamera namespace.
Definition: backtrace.h:17