diff options
author | austriancoder <austriancoder> | 2005-08-15 17:18:40 +0000 |
---|---|---|
committer | austriancoder <austriancoder> | 2005-08-15 17:18:40 +0000 |
commit | 8955b4dfa419698ecb853bb8f1cdc1fe96d206d6 (patch) | |
tree | 2ec35c50a4c8feb54f6c6fe48710d6a48bfc2ea6 /dxr3device.h | |
parent | e4c44acfc5421d0794dcbc777202378f35a187e8 (diff) | |
download | vdr-plugin-dxr3-8955b4dfa419698ecb853bb8f1cdc1fe96d206d6.tar.gz vdr-plugin-dxr3-8955b4dfa419698ecb853bb8f1cdc1fe96d206d6.tar.bz2 |
HEAD should have files of 0.2.3 release
Diffstat (limited to 'dxr3device.h')
-rw-r--r-- | dxr3device.h | 98 |
1 files changed, 0 insertions, 98 deletions
diff --git a/dxr3device.h b/dxr3device.h deleted file mode 100644 index 15778a5..0000000 --- a/dxr3device.h +++ /dev/null @@ -1,98 +0,0 @@ -/* - * dxr3device.h - * - * Copyright (C) 2002-2004 Kai Möller - * Copyright (C) 2004 Christian Gmeiner - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 2.1 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - */ - -#ifndef _DXR3_DEVICE_H_ -#define _DXR3_DEVICE_H_ - -#include "dxr3interface.h" -#include "dxr3log.h" -#include "dxr3demuxdevice.h" -#include "dxr3spudecoder.h" -#include <string> - -// ================================== -// our device :) -/*! - cDxr3Device is the interface for VDR devices. - Is is the part, which VDR "talks" with our plugin. -*/ -class cDxr3Device : public cDevice, public Singleton<cDxr3Device> -{ -public: - cDxr3Device(); - cDxr3Device(cDxr3Interface& demuxDevice); - ~cDxr3Device(); - - virtual void MakePrimaryDevice(bool On); - - // replaying - virtual bool HasDecoder() const; - virtual bool CanReplay() const; - virtual bool SetPlayMode(ePlayMode PlayMode); - virtual int64_t GetSTC(); - virtual void TrickSpeed(int Speed); - virtual void Clear(); - virtual void Play(); - virtual void Freeze(); - virtual void Mute(); - virtual void StillPicture(const uchar *Data, int Length); - virtual bool Poll(cPoller &Poller, int TimeoutMs = 0); - virtual int PlayVideo(const uchar *Data, int Length); -#if VDRVERSNUM >= 10318 - virtual int PlayAudio(const uchar *Data, int Length); -#else - virtual void PlayAudio(const uchar *Data, int Length); -#endif - - // addition functions - virtual bool GrabImage(const char *FileName, bool Jpeg = true, int Quality = -1, int SizeX = -1, int SizeY = -1); - virtual void SetVideoFormat(bool VideoFormat16_9); - virtual void SetVolumeDevice(int Volume); - - // osd - virtual cSpuDecoder *GetSpuDecoder(); - - // helper function - void Reset() { m_CalledBySet = true; SetPlayMode(m_PlayMode); m_CalledBySet = false; } - -protected: - ePlayMode m_PlayMode; - cDxr3DemuxDevice m_DemuxDevice; - bool m_AC3Present; - bool m_CalledBySet; - std::string m_strBuf; - int m_Offset; - - //virtual bool SetPlayMode(ePlayMode PlayMode); - //uint8_t m_pBuffer[MAX_VIDEO_BUFFER_SIZE]; - //cDxr3StartStopThread* m_pStartStopThread; - cDxr3SpuDecoder* m_spuDecoder; -}; - -#endif /*_DXR3_DEVICE_H_*/ - -// Local variables: -// mode: c++ -// c-file-style: "stroustrup" -// c-file-offsets: ((inline-open . 0)) -// indent-tabs-mode: t -// End: |