Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
videostream.h
Go to the documentation of this file.
1
10#pragma once
11
12#include "videoframe.h"
13#include "videolistener.h"
14
15#ifdef WIN32
16# ifdef COMPILING_DLL_SimulatedRealityCameras
17# define DIMENCOSR_API __declspec(dllexport)
18# else
19# define DIMENCOSR_API __declspec(dllimport)
20# endif
21#else
22# define DIMENCOSR_API
23#endif
24
25namespace SR {
26
27class Camera; //forward declaration
28
37private:
38 class Impl;
39 Impl* pimpl;
40public:
42
51 VideoStream(Camera* sense, VideoListener* listener);
52
57
61 void close();
62
68 void update(Frame frame);
69};
70
71}
72
73#undef DIMENCOSR_API
Class of Sense dealing with video data.
Definition: camera.h:71
Class containing an image recorded by a Camera.
Definition: videoframe.h:50
Interface for listening to SR_videoFrame updates.
Definition: videolistener.h:31
Stream of SR_videoFrame objects.
Definition: videostream.h:36
void stopListening()
Stop listening and notify sense to stop sending new frames. (Called by listener)
void close()
Close the stream. (Called by sense)
VideoStream(Camera *sense, VideoListener *listener)
Construct a new VideoStream.
void update(Frame frame)
Send new frame to listener.
Namespace containing all C++ Simulated Reality classes.
Definition: srconfiguration.h:25
#define DIMENCOSR_API
Definition: videostream.h:22