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);
99 void setRawTransferData(
const ImagePair& metaData,
unsigned char* rawData,
100 int firstTileWidth = 0,
int secondTileWidth = 0,
int validBytes = 0x7FFFFFFF);
111 void setRawValidBytes(
int validBytes);
121 const unsigned char* getTransferMessage(
int& length);
126 bool transferComplete();
132 void resetTransfer();
148 bool getReceivedImagePair(
ImagePair& imagePair);
172 bool getPartiallyReceivedImagePair(
ImagePair& imagePair,
int& validRows,
bool& complete);
177 bool imagesReceived()
const;
185 unsigned char* getNextReceiveBuffer(
int& maxLength);
202 void processReceivedMessage(
int length);
211 int getNumDroppedFrames()
const;
217 void resetReception();
223 bool newClientConnected();
228 bool isConnected()
const;
239 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.