@@ -135,8 +135,8 @@ public:
IPACameraSensorInfo sensorInfo_;
struct CropParams {
- CropParams(Rectangle ispCrop_, Size ispMinCropSize_)
- : ispCrop(ispCrop_), ispMinCropSize(ispMinCropSize_)
+ CropParams(Rectangle ispCrop_, Size ispMinCropSize_, unsigned int ispIndex_)
+ : ispCrop(ispCrop_), ispMinCropSize(ispMinCropSize_), ispIndex(ispIndex_)
{
}
@@ -144,6 +144,8 @@ public:
Rectangle ispCrop;
/* Minimum crop size in ISP output pixels */
Size ispMinCropSize;
+ /* Index of the ISP output channel for this crop */
+ unsigned int ispIndex;
};
/* Mapping of CropParams keyed by the output stream order in CameraConfiguration */
@@ -714,7 +714,7 @@ int Vc4CameraData::platformConfigure(const RPi::RPiCameraConfiguration *rpiConfi
*/
cropParams_.emplace(std::piecewise_construct,
std::forward_as_tuple(0),
- std::forward_as_tuple(ispCrop, testCrop.size()));
+ std::forward_as_tuple(ispCrop, testCrop.size(), 0));
return 0;
}