mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-15 00:19:44 +03:00
ipa: raspberrypi: Pass lens shading table through configure() function
The IPAInterface::configure() function now accepts custom configuration data. Use it to pass the lens shading table instead of using a custom IPA event. This will allow starting the IPA when starting the camera, instead of pre-starting it early in order to process the lens shading table allocation event. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Naushir Patuck <naush@raspberrypi.com>
This commit is contained in:
parent
c0b0b7205c
commit
40ed8b3b75
3 changed files with 14 additions and 13 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue