@@ -1321,7 +1321,7 @@ void CameraData::applyScalerCrop(const ControlList &controls)
if (ispCrop != cropParams.ispCrop) {
cropParams.ispCrop = ispCrop;
- platformSetIspCrop(ispCrop);
+ platformSetIspCrop(cropParams.ispIndex, ispCrop);
}
}
}
@@ -83,7 +83,7 @@ public:
Rectangle scaleIspCrop(const Rectangle &ispCrop) const;
void applyScalerCrop(const ControlList &controls);
- virtual void platformSetIspCrop(const Rectangle &ispCrop) = 0;
+ virtual void platformSetIspCrop(unsigned int index, const Rectangle &ispCrop) = 0;
void cameraTimeout();
void frameStarted(uint32_t sequence);
@@ -109,7 +109,7 @@ public:
Config config_;
private:
- void platformSetIspCrop(const Rectangle &ispCrop) override
+ void platformSetIspCrop([[maybe_unused]] unsigned int index, const Rectangle &ispCrop) override
{
Rectangle crop = ispCrop;
isp_[Isp::Input].dev()->setSelection(V4L2_SEL_TGT_CROP, &crop);
@@ -707,7 +707,7 @@ int Vc4CameraData::platformConfigure(const RPi::RPiCameraConfiguration *rpiConfi
Size size = unicamFormat.size.boundedToAspectRatio(maxSize);
Rectangle ispCrop = size.centeredTo(Rectangle(unicamFormat.size).center());
- platformSetIspCrop(ispCrop);
+ platformSetIspCrop(0, ispCrop);
/*
* Set the scaler crop to the value we are using (scaled to native sensor
* coordinates).