Requested by Mads (on behalf of MID / an LDC): count how many pixels are in different gain stages so we can monitor that over time. The silly thing is that I already put thresholded gain stages into a full-size array for preview purposes, but:
So in this MR, I've now added an extra hook which sits in a similar place to addons, but gets all the extra buffers that are passed between the device and the kernel runner. This is ugly, but: