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