diff options
author | Daniel Semkowicz via libcamera-devel <libcamera-devel@lists.libcamera.org> | 2022-07-13 10:43:10 +0200 |
---|---|---|
committer | Jacopo Mondi <jacopo@jmondi.org> | 2022-07-14 20:12:17 +0200 |
commit | 971dc5858d0823c6a0b08027727088eebb4350b3 (patch) | |
tree | 6220a3e7f048472f8d6d180a64fcb0c0c7962a93 | |
parent | 9d79a6b6c64e0b6281391c3277af68210d434460 (diff) |
pipeline: rkisp1: Add basic AF controls to the supported controls list
This will expose the AF controls and will allow controlling them using
the top level API.
Signed-off-by: Daniel Semkowicz <dse@thaumatec.com>
-rw-r--r-- | src/libcamera/pipeline/rkisp1/rkisp1.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/libcamera/pipeline/rkisp1/rkisp1.cpp b/src/libcamera/pipeline/rkisp1/rkisp1.cpp index d54328d5..4bc51be4 100644 --- a/src/libcamera/pipeline/rkisp1/rkisp1.cpp +++ b/src/libcamera/pipeline/rkisp1/rkisp1.cpp @@ -974,10 +974,12 @@ int PipelineHandlerRkISP1::createCamera(MediaEntity *sensor) std::unique_ptr<RkISP1CameraData> data = std::make_unique<RkISP1CameraData>(this, &mainPath_, &selfPath_); - ControlInfoMap::Map ctrls; - ctrls.emplace(std::piecewise_construct, - std::forward_as_tuple(&controls::AeEnable), - std::forward_as_tuple(false, true)); + ControlInfoMap::Map ctrls({ + { &controls::AeEnable, ControlInfo(false, true) }, + { &controls::AfMode, ControlInfo(controls::AfModeValues) }, + { &controls::AfTrigger, ControlInfo(controls::AfTriggerValues) }, + { &controls::AfPause, ControlInfo(controls::AfPauseValues) } + }); data->controlInfo_ = ControlInfoMap(std::move(ctrls), controls::controls); |