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" 72 ImageTransfer(
const char* address,
const char* service =
"7681",
74 bool server =
false,
int bufferSize = 1048576,
int maxUdpPacketSize = 1472);
86 int maxUdpPacketSize = 1472);
96 void setRawTransferData(
const ImagePair& metaData,
unsigned char* rawData,
97 int firstTileWidth = 0,
int secondTileWidth = 0,
int validBytes = 0x7FFFFFFF);
104 void setRawValidBytes(
int validBytes);
116 void setTransferImagePair(
const ImagePair& imagePair);
154 bool receiveImagePair(
ImagePair& imagePair);
165 bool receivePartialImagePair(
ImagePair& imagePair,
int& validRows,
bool& complete);
174 int getNumDroppedFrames()
const;
190 bool isConnected()
const;
204 std::string getRemoteAddress()
const;
The operation would block and blocking as been disabled.
Class for synchronous transfer of image pairs.
The connection-less UDP transport protocol.
ProtocolType
Supported network protocols.
Aggregates information about a discovered device.
There is currently no more data that could be transmitted.
The image pair has been transferred completely.
A set of two images, which are usually the left camera image and the disparity map.
TransferStatus
The result of a partial image transfer.