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" 76 ImageTransfer(
const char* address,
const char* service =
"7681",
78 bool server =
false,
int bufferSize = 16*1048576,
int maxUdpPacketSize = 1472);
90 int maxUdpPacketSize = 1472);
100 void setRawTransferData(
const ImageSet& metaData,
const std::vector<unsigned char*>& rawData,
101 int firstTileWidth = 0,
int middleTileWidth = 0,
int lastTileWidth = 0);
108 void setRawValidBytes(
const std::vector<int>& validBytes);
120 void setTransferImageSet(
const ImageSet& imageSet);
161 bool receiveImageSet(
ImageSet& imageSet);
163 #ifndef DOXYGEN_SHOULD_SKIP_THIS 164 DEPRECATED(
"Use receiveImageSet() instead")
165 inline
bool receiveImagePair(
ImageSet& imageSet) {
166 return receiveImageSet(imageSet);
179 bool receivePartialImageSet(
ImageSet& imageSet,
int& validRows,
bool& complete);
181 #ifndef DOXYGEN_SHOULD_SKIP_THIS 182 DEPRECATED(
"Use receivePartialImageSet() instead")
183 inline
bool receivePartialImagePair(
ImageSet& imageSet,
int& validRows,
bool& complete) {
184 return receivePartialImageSet(imageSet, validRows, complete);
195 int getNumDroppedFrames()
const;
211 bool isConnected()
const;
225 std::string getRemoteAddress()
const;
227 #ifndef DOXYGEN_SHOULD_SKIP_THIS 228 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.