15 #ifndef VISIONTRANSFER_IMAGETRANSFER_H 16 #define VISIONTRANSFER_IMAGETRANSFER_H 19 #include "visiontransfer/common.h" 20 #include "visiontransfer/imageprotocol.h" 21 #include "visiontransfer/imageset.h" 22 #include "visiontransfer/deviceinfo.h" 72 ImageTransfer(
const char* address,
const char* service =
"7681",
74 bool server =
false,
int bufferSize = 16*1048576,
int maxUdpPacketSize = 1472);
86 int maxUdpPacketSize = 1472);
96 void setRawTransferData(
const ImageSet& metaData,
const std::vector<unsigned char*>& rawData,
97 int firstTileWidth = 0,
int middleTileWidth = 0,
int lastTileWidth = 0);
104 void setRawValidBytes(
const std::vector<int>& validBytes);
116 void setTransferImageSet(
const ImageSet& imageSet);
154 bool receiveImageSet(
ImageSet& imageSet);
156 #ifndef DOXYGEN_SHOULD_SKIP_THIS 157 DEPRECATED(
"Use receiveImageSet() instead")
158 inline
bool receiveImagePair(
ImageSet& imageSet) {
159 return receiveImageSet(imageSet);
172 bool receivePartialImageSet(
ImageSet& imageSet,
int& validRows,
bool& complete);
174 #ifndef DOXYGEN_SHOULD_SKIP_THIS 175 DEPRECATED(
"Use receivePartialImageSet() instead")
176 inline
bool receivePartialImagePair(
ImageSet& imageSet,
int& validRows,
bool& complete) {
177 return receivePartialImageSet(imageSet, validRows, complete);
188 int getNumDroppedFrames()
const;
204 bool isConnected()
const;
218 std::string getRemoteAddress()
const;
220 #ifndef DOXYGEN_SHOULD_SKIP_THIS 221 std::string statusReport();
The operation would block and blocking as been disabled.
Class for synchronous transfer of image sets.
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 set has been transferred completely.
A set of one to three images, but usually two (the left camera image and the disparity map)...
TransferStatus
The result of a partial image transfer.