20 #ifndef UIMGPUSHTEST_H 21 #define UIMGPUSHTEST_H 26 #include "uimgsockserv.h" 40 virtual void gotNewMessage(
unsigned char * message,
int length);
75 bool blockSend(
const char * buffer,
int length);
78 bool sendTimeRequest();
83 bool sendCameraInfoRequest(
bool allCams);
88 bool sendCameraParameterRequest();
93 bool sendImageMetaRequest(
int sourceNum);
98 bool sendImageCaptureRequest(
bool removeRadialError,
109 bool sendGetImage(
int sourceNum,
118 bool sendNewCameraSettings2(
UComCam * cs);
133 bool sendNewCameraSettings(
int dev,
int w,
int h,
135 bool repeatNewImages,
148 bool sendNewCameraParameters(
149 const float radialK1,
150 const float radialK2,
151 const float focalLength,
157 bool sendCameraCalibrateRequest(
161 bool clearSpecificData,
163 bool findCameraParams,
164 bool alsoFocalLength,
165 bool alsoK1,
bool alsoK2,
166 unsigned long setsToUse,
174 bool sendBarcodeExecute(
int sourceImage,
178 bool findPosition,
bool findRotation,
179 bool findChartPosition,
180 bool clearOldData,
bool findCameraParameters,
181 int frameSize,
float blockSize,
int codeBlockFactor,
182 int maxCodesToLookFor,
184 unsigned char specificCodeLng,
189 bool sendCameraClose();
192 bool sendCameraMaster();
195 bool sendPantiltInfoRequest();
198 bool sendPantiltPosRequest(
207 bool decodeTimeMsg(
unsigned char * msg);
212 bool decodeCameraInfoMsg(
unsigned char * msg);
216 bool decodeCameraInfoMsg2(
unsigned char * msg);
221 bool decodeCameraParamMsg(
unsigned char * msg);
224 bool decodeImageMetaData(
unsigned char * msg);
230 bool decodeImageData(
unsigned char * msg);
234 void processMessage(
unsigned char *
data,
int length);
238 int decodeMessages();
244 bool decodeDone(
unsigned char * msg);
248 bool decodeBarcodeCode(
unsigned char * msg);
252 bool decodePantiltPosition(
unsigned char * msg);
255 virtual void imageMetaUpdated(
int imageSlot);
262 virtual void imageUpdated(
unsigned int serial,
267 virtual void cameraDataUpdated(
int device);
278 virtual void sInfo(
const char * message,
int type);
320 unsigned char message[MAX_MESSAGE_LENGTH_FROM_CAM * 2];
int imagesReceived
Definition: uimgpushtest.h:306
bool dataBuffersCreated
Definition: uimgpushtest.h:312
int data[2][CHUNK]
Definition: comedi_reader.c:72
UComCam ccam
Definition: uimgpushtest.h:316
int formatMajor
Definition: uimgpushtest.h:286
int messageCnt
Definition: uimgpushtest.h:322
Definition: uimgpushtest.h:48
bool verboseMessages
Definition: uimgpushtest.h:314
bool reqOutstanding
Definition: uimgpushtest.h:295
Definition: augclient/globals.h:129
UTime startTime
Definition: uimgpushtest.h:301
virtual void gotNewMessage(unsigned char *message, int length)
UTime timeServ
Definition: uimgpushtest.h:284
UTime reqTime
Definition: uimgpushtest.h:297
Definition: uimgpushtest.h:66
Definition: ucam4/ucomcam.h:36
URawImage * rawImage
Definition: uimgpushtest.h:310
int selectedDeviceNumber
Definition: uimgpushtest.h:328
#define MAX_CLIENTS_SERVED
Definition: usockserv.h:29
int reqMessageSerial
Definition: uimgpushtest.h:296
Definition: uimgpushtest.h:35
int formatMinor
Definition: uimgpushtest.h:288
virtual void timeUpdated()
Definition: uimgpushtest.h:273
Definition: usockclient.h:47
int tryColorFormat
Definition: uimgpushtest.h:293
int serial
Definition: uimgpushtest.h:324
UTime startTimeClient
Definition: uimgpushtest.h:303
bool receiving
Definition: uimgpushtest.h:318
UImage640 * rgbImage
Definition: uimgpushtest.h:309
bool finished
Definition: uimgpushtest.h:58
UTime recvTime
Definition: uimgpushtest.h:299