BoB robotics
The Brains on Board robotics library
BoBRobotics::Video::NetSink Class Reference

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)
 

Detailed Description

Object for sending video frames synchronously or asynchronously over network.

Constructor & Destructor Documentation

◆ NetSink() [1/2]

BoBRobotics::Video::NetSink::NetSink ( Net::Connection connection,
Input input 
)

Create a NetSink for asynchronous operation.

Parameters
connectionThe connection over which to transmit images
inputThe Input source for images

◆ NetSink() [2/2]

BoBRobotics::Video::NetSink::NetSink ( Net::Connection connection,
const cv::Size &  frameSize,
const std::string &  cameraName 
)

Create a NetSink for synchronous operation.

Parameters
connectionsThe connection over which to transmit images
frameSizeThe size of the frames output by the video source
cameraNameThe name of the camera (see Input::getCameraName())

The documentation for this class was generated from the following files: