15 #ifndef VISIONTRANSFER_IMAGETRANSFER_H 16 #define VISIONTRANSFER_IMAGETRANSFER_H 19 #include "visiontransfer/common.h" 20 #include "visiontransfer/imageprotocol.h" 21 #include "visiontransfer/imagepair.h" 88 const char* localAddress,
const char* localService,
int bufferSize = 1048576,
89 int maxUdpPacketSize = 1472);
99 void setRawTransferData(
const ImagePair& metaData,
unsigned char* rawData,
100 int secondTileWidth = 0,
int validBytes = 0x7FFFFFFF);
107 void setRawValidBytes(
int validBytes);
119 void setTransferImagePair(
const ImagePair& imagePair);
156 bool receiveImagePair(
ImagePair& imagePair,
bool block =
true);
167 bool receivePartialImagePair(
ImagePair& imagePair,
int& validRows,
bool& complete,
bool block =
false);
185 bool isClientConnected()
const;
202 std::string getClientAddress()
const;
The connection has been closed by the remote host.
Using TCP and acting as communication server.
OperationMode
Supported transfer modes.
Using TCP and acting as communication client.
Class for synchronous transfer of image pairs.
The image pair has been transferred completely.
TransferStatus
The result of a partial image transfer.
A set of two images, which are usually the left camera image and the disparity map.
There is currently no more data that could be transmitted.