summaryrefslogtreecommitdiff
path: root/src/ipa/rkisp1/algorithms/af.h
diff options
context:
space:
mode:
authorDaniel Semkowicz via libcamera-devel <libcamera-devel@lists.libcamera.org>2022-07-13 10:43:14 +0200
committerJacopo Mondi <jacopo@jmondi.org>2022-07-14 20:12:17 +0200
commit0c249cbd2b3711e9372219b655e10bc5f5560a90 (patch)
treed90faf88c4eefeae83651a99bd6098a2ee5be366 /src/ipa/rkisp1/algorithms/af.h
parent7fdb14fbf51b4cad6390778aa6743941b12d3c3e (diff)
ipa: rkisp1: Add "Windows" Metering mode to auto focus algorithm
Allow manually setting auto focus window. Currently only one window is enabled, but ISP allows up to three of them. Signed-off-by: Daniel Semkowicz <dse@thaumatec.com>
Diffstat (limited to 'src/ipa/rkisp1/algorithms/af.h')
-rw-r--r--src/ipa/rkisp1/algorithms/af.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ipa/rkisp1/algorithms/af.h b/src/ipa/rkisp1/algorithms/af.h
index e9afbb98..eeb806c0 100644
--- a/src/ipa/rkisp1/algorithms/af.h
+++ b/src/ipa/rkisp1/algorithms/af.h
@@ -27,6 +27,15 @@ public:
void setMetering(controls::AfMeteringEnum metering) override;
void setWindows(Span<const Rectangle> windows) override;
+
+private:
+ void updateCurrentWindow(const Rectangle &window);
+
+ controls::AfMeteringEnum meteringMode_ = controls::AfMeteringAuto;
+ Rectangle currentWindow_;
+ Rectangle defaultWindow_;
+ Rectangle userWindow_;
+ bool updateAfwindow_ = false;
};
} /* namespace libcamera::ipa::rkisp1::algorithms */