Fixed NetSend so it can be used in debug mode.
[qt/compvision.git] / UEyeImage.h
1 #ifndef UEYE_H
2 #define UEYE_H\r
3
4 #include "ImageSource.h"\r
5 \r
6 // uEye library\r
7 #include <uEye.h>\r
8 \r
9 #include <QMutex>\r
10 \r
11 class UEyeImage : public ImageSource\r
12 {\r
13         public:\r
14                 UEyeImage(ImagePool *source, ImagePool *destination);\r
15                 void connect();\r
16                 void disconnect();\r
17                 bool isConnected();\r
18                 void process();\r
19         \r
20         private:\r
21                 HIDS ucam;\r
22                 int width, height;\r
23                 int ubpp, ucolor;\r
24                 char *ubuf; // uEye image buffer\r
25                 int ubuf_id; // uEye buffer id\r
26                 bool connected;\r
27                 QMutex key; // prevent bad interactions when modifying the camera state\r
28 };\r
29 \r
30 #endif