Move the utils functionality to the libcamera/base library. Reviewed-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
32 lines
1.1 KiB
C++
32 lines
1.1 KiB
C++
/* SPDX-License-Identifier: BSD-2-Clause */
|
|
/*
|
|
* Copyright (C) 2019, Raspberry Pi (Trading) Limited
|
|
*
|
|
* agc_algorithm.hpp - AGC/AEC control algorithm interface
|
|
*/
|
|
#pragma once
|
|
|
|
#include <libcamera/base/utils.h>
|
|
|
|
#include "algorithm.hpp"
|
|
|
|
namespace RPiController {
|
|
|
|
class AgcAlgorithm : public Algorithm
|
|
{
|
|
public:
|
|
AgcAlgorithm(Controller *controller) : Algorithm(controller) {}
|
|
// An AGC algorithm must provide the following:
|
|
virtual unsigned int GetConvergenceFrames() const = 0;
|
|
virtual void SetEv(double ev) = 0;
|
|
virtual void SetFlickerPeriod(libcamera::utils::Duration flicker_period) = 0;
|
|
virtual void SetFixedShutter(libcamera::utils::Duration fixed_shutter) = 0;
|
|
virtual void SetMaxShutter(libcamera::utils::Duration max_shutter) = 0;
|
|
virtual void SetFixedAnalogueGain(double fixed_analogue_gain) = 0;
|
|
virtual void SetMeteringMode(std::string const &metering_mode_name) = 0;
|
|
virtual void SetExposureMode(std::string const &exposure_mode_name) = 0;
|
|
virtual void
|
|
SetConstraintMode(std::string const &contraint_mode_name) = 0;
|
|
};
|
|
|
|
} // namespace RPiController
|