blob: af341d13a8dfec5b5657696100252e76df54b187 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
* Copyright (C) 2022, Theobroma Systems
*
* af_interface.cpp - Autofocus control algorithm interface
*/
#include "af_interface.h"
/**
* \file af_interface.h
* \brief AF algorithm common interface
*/
namespace libcamera::ipa::common::algorithms {
/**
* \class AfInterface
* \brief Common interface for auto-focus algorithms
* \tparam Module The IPA module type for this class of algorithms
*
* The AfInterface class defines a standard interface for IPA auto focus
* algorithms.
*/
/**
* \fn AfInterface::setMode()
* \brief Set auto focus mode
* \param[in] mode AF mode
*/
/**
* \fn AfInterface::setRange()
* \brief set the range of focus distances that is scanned
* \param[in] range AF range
*/
/**
* \fn AfInterface::setSpeed()
* \brief Set how fast algorithm should move the lens
* \param[in] speed Lens move speed
*/
/**
* \fn AfInterface::setMeteringMode()
* \brief Set AF metering mode
* \param[in] metering AF metering mode
*/
/**
* \fn AfInterface::setWindows()
* \brief Set AF windows
* \param[in] windows AF windows
*
* Sets the focus windows used by the AF algorithm when AfMetering is set
* to AfMeteringWindows.
*/
/**
* \fn AfInterface::setTrigger()
* \brief Starts or cancels the autofocus scan
* \param[in] trigger Trigger mode
*/
/**
* \fn AfInterface::setPause()
* \brief Pause the autofocus while in AfModeContinuous mode.
* \param[in] pause Pause mode
*/
/**
* \fn AfInterface::setLensPosition()
* \brief Set the lens position while in AfModeManual
* \param[in] lensPosition Lens position
*/
/**
* \fn AfInterface::getState()
* \brief Get the current state of the AF algorithm
* \return AF state
*/
/**
* \fn AfInterface::getPauseState()
* \brief Get the current pause state of the AF algorithm.
* \return AF pause state
*
* Only applicable in continuous (AfModeContinuous) mode. In other modes,
* AfPauseStateRunning is always returned.
*/
} /* namespace libcamera::ipa::common::algorithms */
|