summaryrefslogtreecommitdiff
path: root/src/ipa/raspberrypi/raspberrypi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipa/raspberrypi/raspberrypi.cpp')
-rw-r--r--src/ipa/raspberrypi/raspberrypi.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ipa/raspberrypi/raspberrypi.cpp b/src/ipa/raspberrypi/raspberrypi.cpp
index 851597f0..b412260b 100644
--- a/src/ipa/raspberrypi/raspberrypi.cpp
+++ b/src/ipa/raspberrypi/raspberrypi.cpp
@@ -272,6 +272,12 @@ void IPARPi::configure(const CameraSensorInfo &sensorInfo,
applyAGC(&agcStatus);
lastMode_ = mode_;
+
+ /* Store the lens shading table pointer and handle if available. */
+ if (ipaConfig.operation & RPI_IPA_CONFIG_LS_TABLE) {
+ lsTable_ = reinterpret_cast<void *>(ipaConfig.data[0]);
+ lsTableHandle_ = ipaConfig.data[1];
+ }
}
void IPARPi::mapBuffers(const std::vector<IPABuffer> &buffers)
@@ -354,12 +360,6 @@ void IPARPi::processEvent(const IPAOperationData &event)
break;
}
- case RPI_IPA_EVENT_LS_TABLE_ALLOCATION: {
- lsTable_ = reinterpret_cast<void *>(event.data[0]);
- lsTableHandle_ = event.data[1];
- break;
- }
-
default:
LOG(IPARPI, Error) << "Unknown event " << event.operation;
break;