summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Plowman <david.plowman@raspberrypi.com>2020-11-26 14:50:05 +0000
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-12-20 05:04:05 +0200
commit50ec902aa8b6b345b20529e338c2f09d72b99184 (patch)
tree50ba1945aaf179ba1f0ca37afbb508472f0d9de1 /src
parentb4d21c62d1957530ca197cfcbb65370a1415cc33 (diff)
ipa: raspberrypi: Add digital gain to libcamera metadata
The digital gain reported by the AGC algorithm is reported in the metadata that is included in completed requests. Signed-off-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src')
-rw-r--r--src/ipa/raspberrypi/raspberrypi.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ipa/raspberrypi/raspberrypi.cpp b/src/ipa/raspberrypi/raspberrypi.cpp
index d087b07e..8af3d603 100644
--- a/src/ipa/raspberrypi/raspberrypi.cpp
+++ b/src/ipa/raspberrypi/raspberrypi.cpp
@@ -478,8 +478,10 @@ void IPARPi::reportMetadata()
}
AgcStatus *agcStatus = rpiMetadata_.GetLocked<AgcStatus>("agc.status");
- if (agcStatus)
+ if (agcStatus) {
libcameraMetadata_.set(controls::AeLocked, agcStatus->locked);
+ libcameraMetadata_.set(controls::DigitalGain, agcStatus->digital_gain);
+ }
LuxStatus *luxStatus = rpiMetadata_.GetLocked<LuxStatus>("lux.status");
if (luxStatus)