change nPixels for CTB

This commit is contained in:
muelle_m1 committed 2026-07-10 12:30:31 +02:00
1 parent 2691e88f73
commit 2d27be9dd8
1 file changed
+2 -2
+2 -2
View File
@@ -76,7 +76,7 @@ inline CtbImageOutputs computeCtbImageSize(const CtbImageInputs &in) {
in.mode == slsDetectorDefs::ANALOG_AND_DIGITAL) {
int nAnalogChans = __builtin_popcount(in.adcMask);
out.nPixelsX += nAnalogChans;
out.nPixelsX += nAnalogChans * in.nAnalogSamples;
out.nAnalogBytes =
nAnalogChans * num_bytes_per_analog_channel * in.nAnalogSamples;
LOG(logDEBUG1) << " Number of Analog Channels:" << nAnalogChans
@@ -137,7 +137,7 @@ inline CtbImageOutputs computeCtbImageSize(const CtbImageInputs &in) {
in.mode == slsDetectorDefs::DIGITAL_AND_TRANSCEIVER) {
int nTransceiverChans = __builtin_popcount(in.transceiverMask);
out.nPixelsX += nTransceiverChans;
out.nPixelsX += nTransceiverChans * in.nTransceiverSamples;
out.nTransceiverBytes = nTransceiverChans *
num_bytes_per_transceiver_channel *
in.nTransceiverSamples;