15 #ifndef VISIONTRANSFER_IMAGEPROTOCOL_H 16 #define VISIONTRANSFER_IMAGEPROTOCOL_H 18 #include "visiontransfer/common.h" 19 #include "visiontransfer/imagepair.h" 67 void setTransferImagePair(
const ImagePair& imagePair);
98 void setRawTransferData(
const ImagePair& metaData,
unsigned char* rawData,
99 int firstTileWidth = 0,
int secondTileWidth = 0,
int validBytes = 0x7FFFFFFF);
110 void setRawValidBytes(
int validBytes);
120 const unsigned char* getTransferMessage(
int& length);
125 bool transferComplete();
131 void resetTransfer();
147 bool getReceivedImagePair(
ImagePair& imagePair);
171 bool getPartiallyReceivedImagePair(
ImagePair& imagePair,
int& validRows,
bool& complete);
176 bool imagesReceived()
const;
184 unsigned char* getNextReceiveBuffer(
int& maxLength);
199 bool processReceivedMessage(
int length);
205 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.