debug print

This commit is contained in:
maliakal_d 2018-04-09 10:13:14 +02:00
parent 4323a837ef
commit 0eff9e1401

View File

@ -6113,7 +6113,8 @@ void multiSlsDetector::readFrameFromReceiver(){
// shape
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"
@ -6122,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();
@ -6136,7 +6137,7 @@ void multiSlsDetector::readFrameFromReceiver(){
coordY = (nY - 1) - coordY;
//cout << "X:" << doc["xCoord"].GetUint() <<" Y:"<<doc["yCoord"].GetUint();
flippedDataX = doc["flippedDataX"].GetUint();
#ifdef VERBOSE
//#ifdef VERBOSE
cprintf(BLUE,"(Debug) Header Info:\n"
"currentFileName: %s\n"
"currentAcquisitionIndex: %lu\n"
@ -6148,7 +6149,7 @@ void multiSlsDetector::readFrameFromReceiver(){
"flippedDataX: %u\n",
currentFileName.c_str(), currentAcquisitionIndex, currentFrameIndex,
currentFileIndex, currentSubFrameIndex, coordX, coordY, flippedDataX);
#endif
//#endif
zmqSocket[isocket]->CloseHeaderMessage();
}
@ -6163,7 +6164,13 @@ void multiSlsDetector::readFrameFromReceiver(){
uint32_t yoffset = coordY * nPixelsY;
uint32_t singledetrowoffset = nPixelsX * bytesPerPixel;
uint32_t rowoffset = nX * singledetrowoffset;
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;
if (eiger && flippedDataX) {
for (uint32_t i = 0; i < nPixelsY; ++i) {
memcpy( ((char*)multiframe) + ((yoffset + (nPixelsY - 1 - i) ) * rowoffset) + xoffset,