@@ -22,6 +22,9 @@ struct SensorConfig {
struct InitParams {
bool lensPresent;
libcamera.IPACameraSensorInfo sensorInfo;
+ /* PISP specific */
+ libcamera.SharedFD fe;
+ libcamera.SharedFD be;
};
struct InitResult {
@@ -219,13 +222,14 @@ interface IPARPiEventInterface {
* \fn prepareIspComplete()
* \brief Signal completion of \a prepareIsp
* \param[in] buffers Bayer and embedded buffers actioned.
+ * \param[in] stitchSwapBuffers Whether the stitch block buffers need to be swapped.
*
* This asynchronous event is signalled to the pipeline handler once
* the \a prepareIsp signal has completed, and the ISP is ready to start
* processing the frame. The embedded data buffer may be recycled after
* this event.
*/
- prepareIspComplete(BufferIds buffers);
+ prepareIspComplete(BufferIds buffers, bool stitchSwapBuffers);
/**
* \fn processStatsComplete()
@@ -446,7 +446,7 @@ void IpaBase::prepareIsp(const PrepareParams ¶ms)
frameCount_++;
/* Ready to push the input buffer into the ISP. */
- prepareIspComplete.emit(params.buffers);
+ prepareIspComplete.emit(params.buffers, false);
}
void IpaBase::processStats(const ProcessParams ¶ms)
@@ -78,7 +78,7 @@ public:
void ispOutputDequeue(FrameBuffer *buffer);
void processStatsComplete(const ipa::RPi::BufferIds &buffers);
- void prepareIspComplete(const ipa::RPi::BufferIds &buffers);
+ void prepareIspComplete(const ipa::RPi::BufferIds &buffers, bool stitchSwapBuffers);
void setIspControls(const ControlList &controls);
void setCameraTimeout(uint32_t maxFrameLengthMs);
@@ -833,7 +833,8 @@ void Vc4CameraData::processStatsComplete(const ipa::RPi::BufferIds &buffers)
handleState();
}
-void Vc4CameraData::prepareIspComplete(const ipa::RPi::BufferIds &buffers)
+void Vc4CameraData::prepareIspComplete(const ipa::RPi::BufferIds &buffers,
+ [[maybe_unused]] bool stitchSwapBuffers)
{
unsigned int embeddedId = buffers.embedded & RPi::MaskID;
unsigned int bayer = buffers.bayer & RPi::MaskID;