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