15 #ifndef VISIONTRANSFER_IMAGEPROTOCOL_H 16 #define VISIONTRANSFER_IMAGEPROTOCOL_H 18 #include "visiontransfer/common.h" 19 #include "visiontransfer/imagepair.h" 69 void setTransferImagePair(
const ImagePair& imagePair);
100 void setRawTransferData(
const ImagePair& metaData,
unsigned char* rawData,
101 int firstTileWidth = 0,
int secondTileWidth = 0,
int validBytes = 0x7FFFFFFF);
112 void setRawValidBytes(
int validBytes);
122 const unsigned char* getTransferMessage(
int& length);
127 bool transferComplete();
133 void resetTransfer();
149 bool getReceivedImagePair(
ImagePair& imagePair);
173 bool getPartiallyReceivedImagePair(
ImagePair& imagePair,
int& validRows,
bool& complete);
178 bool imagesReceived()
const;
186 unsigned char* getNextReceiveBuffer(
int& maxLength);
203 void processReceivedMessage(
int length);
212 int getNumDroppedFrames()
const;
218 void resetReception();
224 bool newClientConnected();
229 bool isConnected()
const;
240 const unsigned char* getNextControlMessage(
int& length);
A lightweight protocol for transferring image pairs.
ProtocolType
Supported network protocols.
The connection oriented TCP transport protocol.
A set of two images, which are usually the left camera image and the disparity map.