vdr-plugin-softhddevice-drm-gles 1.4.0
event.h
Go to the documentation of this file.
1
18#ifndef __EVENT_H
19#define __EVENT_H
20
21#include <variant>
22#include <vdr/tools.h>
23
27};
28
38};
39
40struct PlayEvent {};
41struct PauseEvent {};
42struct StopEvent {};
44 int speed;
45 bool forward;
46};
48 const uchar *data;
49 int size;
50};
51struct DetachEvent {};
52struct AttachEvent {};
55};
57struct PipEvent {
59};
60
61using Event = std::variant<
72>;
73
75{
76public:
77 virtual void OnEventReceived(const Event&) = 0;
78};
79
80#endif
virtual void OnEventReceived(const Event &)=0
PipState
Definition: event.h:29
@ PIPSTOP
Definition: event.h:31
@ PIPSWAPPOSITION
Definition: event.h:37
@ PIPCHANSWAP
Definition: event.h:35
@ PIPTOGGLE
Definition: event.h:32
@ PIPCHANUP
Definition: event.h:33
@ PIPSTART
Definition: event.h:30
@ PIPSIZECHANGE
Definition: event.h:36
@ PIPCHANDOWN
Definition: event.h:34
std::variant< PlayEvent, PauseEvent, StopEvent, TrickSpeedEvent, StillPictureEvent, DetachEvent, AttachEvent, BufferUnderrunEvent, BufferingThresholdReachedEvent, PipEvent > Event
Definition: event.h:72
BufferUnderrunType
Definition: event.h:24
@ VIDEO
Definition: event.h:25
@ AUDIO
Definition: event.h:26
BufferUnderrunType type
Definition: event.h:54
Definition: event.h:57
PipState state
Definition: event.h:58
const uchar * data
Definition: event.h:48
bool forward
Definition: event.h:45