areaDetector 3-14
EPICS areaDetector framework
stream2Api.h
Go to the documentation of this file.
1#ifndef STREAM2_API_H
2#define STREAM2_API_H
3
4#include <stream2.h>
5#include <NDArray.h>
6
7typedef struct
8{
9 size_t series;
11
13{
14private:
15 char *mHostname;
16 void *mCtx, *mSock;
17 stream2_image_msg *mImageMsg;
18 int poll (int timeout); // timeout in seconds
19
20public:
21 Stream2API (const char *hostname);
22 ~Stream2API (void);
23 int getHeader (stream_header_t *header, int timeout = 0);
24 int waitFrame (int *end, int timeout = 0);
25 int getFrame (NDArray **pArray, NDArrayPool *pNDArrayPool, int decompress);
26
27 static int uncompress (stream_frame_t *frame, char *data = NULL);
28
29};
30
31#endif
N-dimensional array class; each array has a set of dimensions, a data type, pointer to data,...
Definition NDArray.h:99
The NDArrayPool class manages a free list (pool) of NDArray objects.
Definition NDArray.h:168
Definition stream2Api.h:13
~Stream2API(void)
Definition stream2Api.cpp:108
static int uncompress(stream_frame_t *frame, char *data=NULL)
int waitFrame(int *end, int timeout=0)
Definition stream2Api.cpp:146
int getHeader(stream_header_t *header, int timeout=0)
Definition stream2Api.cpp:115
int getFrame(NDArray **pArray, NDArrayPool *pNDArrayPool, int decompress)
Definition stream2Api.cpp:172
Definition stream2.h:181
Definition stream2Api.h:8
size_t series
Definition stream2Api.h:9