LeiaSR SDK 720218b2 v1.32.7.6322 2025-02-13T14:55:38Z
Stable
videostream.h
Go to the documentation of this file.
1
5#pragma once
6
7#include "videoframe.h"
8#include "videolistener.h"
9
10#ifdef WIN32
11# ifdef COMPILING_DLL_SimulatedRealityCameras
12# define DIMENCOSR_API __declspec(dllexport)
13# else
14# define DIMENCOSR_API __declspec(dllimport)
15# endif
16#else
17# define DIMENCOSR_API
18#endif
19
20namespace SR {
21
22class Camera; //forward declaration
23
32private:
33 class Impl;
34 Impl* pimpl;
35public:
37
46 VideoStream(Camera* sense, VideoListener* listener);
47
52
56 void close();
57
63 void update(Frame frame);
64};
65
66}
67
68#undef DIMENCOSR_API
Class of Sense dealing with video data.
Definition: camera.h:66
Class containing an image recorded by a Camera.
Definition: videoframe.h:45
Interface for listening to SR_videoFrame updates.
Definition: videolistener.h:26
Stream of SR_videoFrame objects.
Definition: videostream.h:31
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:20
#define DIMENCOSR_API
Definition: videostream.h:17