15 #ifndef VISIONTRANSFER_IMAGEPROTOCOL_H 16 #define VISIONTRANSFER_IMAGEPROTOCOL_H 18 #include "visiontransfer/common.h" 19 #include "visiontransfer/imagepair.h" 66 void setTransferImagePair(
const ImagePair& imagePair);
97 void setRawTransferData(
const ImagePair& metaData,
unsigned char* rawData,
98 int firstTileWidth = 0,
int secondTileWidth = 0,
int validBytes = 0x7FFFFFFF);
109 void setRawValidBytes(
int validBytes);
119 const unsigned char* getTransferMessage(
int& length);
124 bool transferComplete();
130 void resetTransfer();
146 bool getReceivedImagePair(
ImagePair& imagePair);
170 bool getPartiallyReceivedImagePair(
ImagePair& imagePair,
int& validRows,
bool& complete);
175 bool imagesReceived()
const;
183 unsigned char* getNextReceiveBuffer(
int& maxLength);
198 bool processReceivedMessage(
int length);
204 void resetReception();
A lightweight protocol for transferring image pairs.
ProtocolType
Supported network protocols.
A set of two images, which are usually the left camera image and the disparity map.
The connection oriented TCP transport protocol.