vdr-plugin-softhddevice-drm-gles 1.5.9-20e15de
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
28
39
40struct PlayEvent {};
41struct PauseEvent {};
42struct StopEvent {};
44 double speed;
45 bool active;
46 bool forward;
47};
49 const uchar *data;
50 int size;
51};
52struct DetachEvent {};
53struct AttachEvent {};
58struct PipEvent {
60};
62 int64_t pts;
63};
64struct ResyncEvent {};
65
66using Event = std::variant<
79>;
80
82{
83public:
84 virtual void OnEventReceived(const Event&) = 0;
85};
86
87#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, ScheduleResyncAtPtsMsEvent, ResyncEvent > Event
Definition event.h:79
BufferUnderrunType
Definition event.h:24
@ VIDEO
Definition event.h:25
@ AUDIO
Definition event.h:26
BufferUnderrunType type
Definition event.h:55
PipState state
Definition event.h:59
const uchar * data
Definition event.h:49
double speed
Definition event.h:44
bool active
Definition event.h:45
bool forward
Definition event.h:46