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);
101 void setRawTransferData(
const ImagePair& metaData,
unsigned char* rawData,
102 int firstTileWidth = 0,
int middleTilesWidth = 0,
int lastTileWidth = 0,
int validBytes = 0x7FFFFFFF);
113 void setRawValidBytes(
int validBytes);
123 const unsigned char* getTransferMessage(
int& length);
128 bool transferComplete();
134 void resetTransfer();
150 bool getReceivedImagePair(
ImagePair& imagePair);
174 bool getPartiallyReceivedImagePair(
ImagePair& imagePair,
int& validRows,
bool& complete);
179 bool imagesReceived()
const;
187 unsigned char* getNextReceiveBuffer(
int& maxLength);
204 void processReceivedMessage(
int length);
213 int getNumDroppedFrames()
const;
219 void resetReception();
225 bool newClientConnected();
230 bool isConnected()
const;
241 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.