mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-21 17:01:05 +01:00
eiger gui works and can read frames, other gui functionalities not implemented
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/*#ifdef SLS_RECEIVER_UDP_FUNCTIONS*/
|
||||
#ifdef SLS_RECEIVER_UDP_FUNCTIONS
|
||||
#ifndef SLS_RECEIVER_UDP_FUNCTIONS_H
|
||||
#define SLS_RECEIVER_UDP_FUNCTIONS_H
|
||||
/********************************************//**
|
||||
@@ -239,8 +239,9 @@ public:
|
||||
* Returns the buffer-current frame read by receiver
|
||||
* @param c pointer to current file name
|
||||
* @param raw address of pointer, pointing to current frame to send to gui
|
||||
* @param fnum frame number for eiger as it is not in the packet
|
||||
*/
|
||||
void readFrame(char* c,char** raw);
|
||||
void readFrame(char* c,char** raw, uint32_t &fnum);
|
||||
|
||||
/**
|
||||
* Closes all files
|
||||
@@ -292,7 +293,7 @@ private:
|
||||
* Copy frames to gui
|
||||
* uses semaphore for nth frame mode
|
||||
*/
|
||||
void copyFrameToGui(char* startbuf);
|
||||
void copyFrameToGui(char* startbuf[], uint32_t fnum=-1, char* buf=NULL);
|
||||
|
||||
/**
|
||||
* creates udp sockets
|
||||
@@ -392,6 +393,27 @@ private:
|
||||
*/
|
||||
void stopListening(int ithread, int rc, int &pc, int &t);
|
||||
|
||||
/**
|
||||
* When acquisition is over, this is called
|
||||
* @param ithread listening thread number
|
||||
* @param wbuffer writer buffer
|
||||
* @param wIndex writer Index
|
||||
*/
|
||||
void stopWriting(int ithread, char* wbuffer[], int wIndex);
|
||||
|
||||
|
||||
/**
|
||||
* data compression for each fifo output
|
||||
* @param ithread listening thread number
|
||||
* @param wbuffer writer buffer
|
||||
* @param npackets number of packets from the fifo
|
||||
* @param data pointer to the next packet start
|
||||
* @param xmax max pixels in x direction
|
||||
* @param ymax max pixels in y direction
|
||||
* @param nf nf
|
||||
*/
|
||||
void handleDataCompression(int ithread, char* wbuffer[], int &npackets, char* data, int xmax, int ymax, int &nf);
|
||||
|
||||
|
||||
/** structure of an eiger image header*/
|
||||
typedef struct
|
||||
@@ -541,6 +563,9 @@ private:
|
||||
/** points to the filename to send to gui */
|
||||
char* guiFileName;
|
||||
|
||||
/** temporary number for eiger frame number as its not included in the packet */
|
||||
uint32_t guiFrameNumber;
|
||||
|
||||
/** send every nth frame to gui or only upon gui request*/
|
||||
int nFrameToGui;
|
||||
|
||||
@@ -731,4 +756,4 @@ public:
|
||||
|
||||
#endif
|
||||
|
||||
/*#endif*/
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user