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" 22 #include "visiontransfer/deviceinfo.h" 70 ImageTransfer(
const char* address,
const char* service =
"7681",
72 bool server =
false,
int bufferSize = 1048576,
int maxUdpPacketSize = 1472);
84 int maxUdpPacketSize = 1472);
94 void setRawTransferData(
const ImagePair& metaData,
unsigned char* rawData,
95 int secondTileWidth = 0,
int validBytes = 0x7FFFFFFF);
102 void setRawValidBytes(
int validBytes);
114 void setTransferImagePair(
const ImagePair& imagePair);
152 bool receiveImagePair(
ImagePair& imagePair);
163 bool receivePartialImagePair(
ImagePair& imagePair,
int& validRows,
bool& complete);
172 int getNumDroppedFrames()
const;
188 bool isConnected()
const;
202 std::string getRemoteAddress()
const;
The connection-less UDP transport protocol.
Class for synchronous transfer of image pairs.
The image pair has been transferred completely.
ProtocolType
Supported network protocols.
TransferStatus
The result of a partial image transfer.
A set of two images, which are usually the left camera image and the disparity map.
The operation would block and blocking as been disabled.
Aggregates information about a discovered device.
There is currently no more data that could be transmitted.