![]() |
BoB robotics
The Brains on Board robotics library
|
Object for sending video frames synchronously or asynchronously over network. More...
#include <netsink.h>
Public Member Functions | |
NetSink (Net::Connection &connection, Input &input) | |
Create a NetSink for asynchronous operation. More... | |
NetSink (Net::Connection &connection, const cv::Size &frameSize, const std::string &cameraName) | |
Create a NetSink for synchronous operation. More... | |
void | sendFrame (const cv::Mat &frame) |
Send a frame over the network (when operating in synchronous mode) | |
Object for sending video frames synchronously or asynchronously over network.
BoBRobotics::Video::NetSink::NetSink | ( | Net::Connection & | connection, |
Input & | input | ||
) |
BoBRobotics::Video::NetSink::NetSink | ( | Net::Connection & | connection, |
const cv::Size & | frameSize, | ||
const std::string & | cameraName | ||
) |
Create a NetSink for synchronous operation.
connections | The connection over which to transmit images |
frameSize | The size of the frames output by the video source |
cameraName | The name of the camera (see Input::getCameraName()) |