libcamera
v0.3.2+116-83c5ad0f
Supporting cameras in Linux since 2019
|
A control validator for Camera instances. More...
Public Member Functions | |
CameraControlValidator (Camera *camera) | |
Construst a CameraControlValidator for the camera. More... | |
const std::string & | name () const override |
Retrieve the name of the object associated with the validator. More... | |
bool | validate (unsigned int id) const override |
Validate a control. More... | |
A control validator for Camera instances.
This ControlValidator specialisation validates that controls exist in the Camera associated with the validator.
libcamera::CameraControlValidator::CameraControlValidator | ( | Camera * | camera | ) |
Construst a CameraControlValidator for the camera.
[in] | camera | The camera |
|
overridevirtual |
Retrieve the name of the object associated with the validator.
Implements libcamera::ControlValidator.
|
overridevirtual |
Validate a control.
[in] | id | The control ID |
Implements libcamera::ControlValidator.