ipa: simple: softisp: Extend to pass metadata
Extend the Simple IPA IPC to support returning a metadata ControlList when the process call has completed. A new signal from the IPA is introduced to report the metadata, similarly to what the hardware pipelines do. Merge the metadata reported by the ISP into any completing request to provide to the application. Completion of a request is delayed until this is done; this doesn't apply to canceled requests. Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Milan Zamazal <mzamazal@redhat.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
committed by
Laurent Pinchart
parent
4e343af7df
commit
fb99081586
@@ -299,15 +299,10 @@ void IPASoftSimple::processStats(const uint32_t frame,
|
||||
int32_t again = sensorControls.get(V4L2_CID_ANALOGUE_GAIN).get<int32_t>();
|
||||
frameContext.sensor.gain = camHelper_ ? camHelper_->gain(again) : again;
|
||||
|
||||
/*
|
||||
* Software ISP currently does not produce any metadata. Use an empty
|
||||
* ControlList for now.
|
||||
*
|
||||
* \todo Implement proper metadata handling
|
||||
*/
|
||||
ControlList metadata(controls::controls);
|
||||
for (auto const &algo : algorithms())
|
||||
algo->process(context_, frame, frameContext, stats_, metadata);
|
||||
metadataReady.emit(frame, metadata);
|
||||
|
||||
/* Sanity check */
|
||||
if (!sensorControls.contains(V4L2_CID_EXPOSURE) ||
|
||||
|
||||
Reference in New Issue
Block a user