libipa AGC algorithm
More...
#include <optional>
#include <stdint.h>
#include <utility>
#include <variant>
#include <vector>
#include <linux/v4l2-controls.h>
#include <libcamera/base/utils.h>
#include <libcamera/control_ids.h>
#include <libcamera/controls.h>
#include <libcamera/geometry.h>
#include "agc_mean_luminance.h"
#include "agc_msv.h"
#include "camera_sensor_helper.h"
Go to the source code of this file.
◆ extractControls()
- Parameters
-
| [in] | controls | The controls list to extract from |
| [in] | sensor | The CameraSensorHelper |
This function extracts V4L2_CID_EXPOSURE and V4L2_CID_ANALOGUE_GAIN from controls and then returns the exposure and gain values. The gain code is mapped to the real gain value if sensor is provided, otherwise the gain code is returned.
- Returns
- A pair of exposure and analogue gain extracted from controls
◆ prepareControls()
- Parameters
-
| [out] | controls | The controls list to populate |
| [in] | sensor | The CameraSensorHelper |
| [in] | frameContext | The agc frame context |
This function sets V4L2_CID_EXPOSURE, V4L2_CID_ANALOGUE_GAIN, and V4L2_CID_VBLANK in controls. The gain is mapped to the gain code if sensor is provided, otherwise the gain value will be used directly.