Loading...
Searching...
No Matches
camera_controls.h
Go to the documentation of this file.
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
* Copyright (C) 2019, Google Inc.
*
* Camera controls
*/
#pragma once
#include "libcamera/internal/control_validator.h"
namespace libcamera {
class Camera;
class CameraControlValidator final : public ControlValidator
{
public:
CameraControlValidator(Camera *camera);
const std::string &name() const override;
bool validate(unsigned int id) const override;
private:
Camera *camera_;
};
} /* namespace libcamera */
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:115
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