Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
|
Stream of SR_videoFrame objects. More...
#include <videostream.h>
Public Types | |
using | Frame = SR::VideoFrame |
Public Member Functions | |
VideoStream (Camera *sense, VideoListener *listener) | |
Construct a new VideoStream. More... | |
void | stopListening () |
Stop listening and notify sense to stop sending new frames. (Called by listener) More... | |
void | close () |
Close the stream. (Called by sense) More... | |
void | update (Frame frame) |
Send new frame to listener. More... | |
Stream of SR_videoFrame objects.
Connects an Camera Sense to a VideoListener object.
using SR::VideoStream::Frame = SR::VideoFrame |
SR::VideoStream::VideoStream | ( | Camera * | sense, |
VideoListener * | listener | ||
) |
Construct a new VideoStream.
sense | refers to the Camera providing updates |
listener | refers to the VideoListener receiving updates |
Called by the Camera when requested for an VideoListener through an openVideoStream call.
void SR::VideoStream::close | ( | ) |
Close the stream. (Called by sense)
void SR::VideoStream::stopListening | ( | ) |
Stop listening and notify sense to stop sending new frames. (Called by listener)
void SR::VideoStream::update | ( | Frame | frame | ) |
Send new frame to listener.
frame | represents a single update |