00001 #ifndef DUMMYDECODER_H_ 00002 #define DUMMYDECODER_H_ 00003 00004 #include <qmap.h> 00005 #include <qptrlist.h> 00006 00007 #include "programinfo.h" 00008 #include "format.h" 00009 #include "decoderbase.h" 00010 00011 extern "C" { 00012 #include "frame.h" 00013 } 00014 00015 class DummyDecoder : public DecoderBase 00016 { 00017 public: 00018 DummyDecoder(NuppelVideoPlayer *parent, ProgramInfo *pginfo) : 00019 DecoderBase(parent, pginfo) {} 00020 virtual ~DummyDecoder() {} 00021 00022 virtual int OpenFile(RingBuffer *, bool, char *, int) { return 0; } 00023 virtual bool GetFrame(int) { usleep(10000); return false; } 00024 00025 virtual bool isLastFrameKey(void) { return true; } 00026 virtual void WriteStoredData(RingBuffer *, bool, long) {} 00027 00028 virtual long UpdateStoredFrameNum(long) { return 0; } 00029 00030 virtual QString GetCodecDecoderName(void) const { return "dummy"; } 00031 virtual MythCodecID GetVideoCodecID(void) const { return kCodec_NONE; } 00032 00033 virtual bool SyncPositionMap(void) { return false; } 00034 }; 00035 00036 #endif
1.5.5