MythTV master
dummydecoder.h
Go to the documentation of this file.
1#ifndef DUMMYDECODER_H_
2#define DUMMYDECODER_H_
3
4#include <thread>
5
7#include "mythframe.h"
8#include "programinfo.h"
9
11{
12 public:
13 DummyDecoder(MythPlayer *parent, const ProgramInfo &pginfo) :
14 DecoderBase(parent, pginfo) {}
15 ~DummyDecoder() override = default;
16
17 // DecoderBase
18 int OpenFile(MythMediaBuffer* /*Buffer*/, bool /*novideo*/, TestBufferVec & /*testbuf*/) override
19 { return 0; }
20 bool GetFrame(DecodeType /*Type*/, bool &/*Retry*/) override
21 { std::this_thread::sleep_for(10ms); return false; }
22 bool IsLastFrameKey(void) const override { return true; }
23 QString GetCodecDecoderName(void) const override { return "dummy"; }
24 MythCodecID GetVideoCodecID(void) const override { return kCodec_NONE; }
25 bool SyncPositionMap(void) override { return false; }
26};
27
28#endif
bool IsLastFrameKey(void) const override
Definition: dummydecoder.h:22
bool SyncPositionMap(void) override
Updates the position map used for skipping frames.
Definition: dummydecoder.h:25
~DummyDecoder() override=default
int OpenFile(MythMediaBuffer *, bool, TestBufferVec &) override
Definition: dummydecoder.h:18
DummyDecoder(MythPlayer *parent, const ProgramInfo &pginfo)
Definition: dummydecoder.h:13
bool GetFrame(DecodeType, bool &) override
Demux, preprocess and possibly decode a frame of video/audio.
Definition: dummydecoder.h:20
MythCodecID GetVideoCodecID(void) const override
Definition: dummydecoder.h:24
QString GetCodecDecoderName(void) const override
Definition: dummydecoder.h:23
Holds information on recordings and videos.
Definition: programinfo.h:74
std::vector< char > TestBufferVec
Definition: decoderbase.h:23
DecodeType
Definition: decoderbase.h:48
MythCodecID
Definition: mythcodecid.h:14
@ kCodec_NONE
Definition: mythcodecid.h:17