From ccdc7d22e9ef6315b6ff477890ff554ca20781bb Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Mon, 9 Apr 2018 11:19:31 +0200 Subject: [PATCH] gappixels also work with new zmq handler --- .../multiSlsDetector/multiSlsDetector.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/slsDetectorSoftware/multiSlsDetector/multiSlsDetector.cpp b/slsDetectorSoftware/multiSlsDetector/multiSlsDetector.cpp index fd2abb269..b4c4d216b 100644 --- a/slsDetectorSoftware/multiSlsDetector/multiSlsDetector.cpp +++ b/slsDetectorSoftware/multiSlsDetector/multiSlsDetector.cpp @@ -6114,7 +6114,7 @@ void multiSlsDetector::readFrameFromReceiver(){ nPixelsX = doc["shape"][0].GetUint(); nPixelsY = doc["shape"][1].GetUint(); -//#ifdef VERBOSE +#ifdef VERBOSE cprintf(BLUE,"(Debug) One Time Header Info:\n" "size: %u\n" "multisize: %u\n" @@ -6123,7 +6123,7 @@ void multiSlsDetector::readFrameFromReceiver(){ "nPixelsX: %u\n" "nPixelsY: %u\n", size, multisize, dynamicRange, bytesPerPixel, nPixelsX, nPixelsY); -//#endif +#endif } // each time, parse rest of header currentFileName = doc["fname"].GetString(); @@ -6137,7 +6137,7 @@ void multiSlsDetector::readFrameFromReceiver(){ coordY = (nY - 1) - coordY; //cout << "X:" << doc["xCoord"].GetUint() <<" Y:"<CloseHeaderMessage(); } @@ -6164,13 +6164,14 @@ void multiSlsDetector::readFrameFromReceiver(){ uint32_t yoffset = coordY * nPixelsY; uint32_t singledetrowoffset = nPixelsX * bytesPerPixel; uint32_t rowoffset = nX * singledetrowoffset; +#ifdef VERBOSE cprintf(BLUE,"(Debug) Multi Image Info:\n" "xoffset: %u\n" "yoffset: %u\n" "singledetrowoffset: %u\n" "rowoffset: %u\n", xoffset, yoffset, singledetrowoffset, rowoffset); - flippedDataX = 0; +#endif if (eiger && flippedDataX) { for (uint32_t i = 0; i < nPixelsY; ++i) { memcpy( ((char*)multiframe) + ((yoffset + (nPixelsY - 1 - i) ) * rowoffset) + xoffset,