diff options
author | Thomas Reufer <thomas@reufer.ch> | 2014-01-07 16:40:32 +0100 |
---|---|---|
committer | Thomas Reufer <thomas@reufer.ch> | 2014-01-07 16:40:32 +0100 |
commit | 88f137d194b1768344e954a1b1d35fb1fce03df9 (patch) | |
tree | b2b3a5293fe02ba30fe57f39ef3edc42d7ec7a04 /omxdevice.h | |
parent | 4e710fc5c2bf2e2e33518eb3c537b7022085bda9 (diff) | |
download | vdr-plugin-rpihddevice-0.0.7.tar.gz vdr-plugin-rpihddevice-0.0.7.tar.bz2 |
2013-12-30: Version 0.0.70.0.7
-------------------------
- new:
- support audio sampling rates other than 48kHz
- changed setting of trick speed with APIVERSNUM >= 20103
- added deinterlacer
- fixed:
- improved audio parser
- fixed still image for H264 video
- mute audio render if volume is set to zero
- missing:
- image grabbing
- video format/output options
Diffstat (limited to 'omxdevice.h')
-rw-r--r-- | omxdevice.h | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/omxdevice.h b/omxdevice.h index 797c58d..d28543e 100644 --- a/omxdevice.h +++ b/omxdevice.h @@ -8,26 +8,18 @@ #define OMX_DEVICE_H #include <vdr/device.h> -#include <vdr/thread.h> #include "types.h" class cOmx; class cAudioDecoder; +class cMutex; class cOmxDevice : cDevice { public: - enum eState { - eNone, - eStartingVideo, - eAudioOnly, - eVideoOnly, - eAudioVideo - }; - cOmxDevice(void (*onPrimaryDevice)(void)); virtual ~cOmxDevice(); @@ -47,12 +39,18 @@ public: virtual int PlayVideo(const uchar *Data, int Length) { return PlayVideo(Data, Length, false); } - virtual int PlayVideo(const uchar *Data, int Length, bool singleFrame = false); + virtual int PlayVideo(const uchar *Data, int Length, bool singleFrame); virtual int64_t GetSTC(void); virtual bool HasIBPTrickSpeed(void) { return true; } + +#if APIVERSNUM >= 20103 + virtual void TrickSpeed(int Speed, bool Forward); +#else virtual void TrickSpeed(int Speed); +#endif + virtual void Clear(void); virtual void Play(void); virtual void Freeze(void); @@ -73,7 +71,7 @@ private: void ResetAudioVideo(bool flushVideoRender = false); - void ApplyTrickSpeed(int trickSpeed, bool reverse = false); + void ApplyTrickSpeed(int trickSpeed, bool forward = true); void PtsTracker(int64_t ptsDiff); cOmx *m_omx; |