MythTV master
mythcommflagplayer.h
Go to the documentation of this file.
1#ifndef MYTHCOMMFLAGPLAYER_H
2#define MYTHCOMMFLAGPLAYER_H
3
4// MythTV
5#include "mythplayer.h"
6
7class MythRebuildSaver : public QRunnable
8{
9 public:
10 MythRebuildSaver(DecoderBase* Decoder, uint64_t First, uint64_t Last);
11 void run () override;
13 static void Wait (DecoderBase* Decoder);
14
15 private:
16 DecoderBase *m_decoder { nullptr };
17 uint64_t m_first { 0 };
18 uint64_t m_last { 0 };
19
20 static QMutex s_lock;
21 static QWaitCondition s_wait;
22 static QHash<DecoderBase*,uint> s_count;
23};
24
26{
27 public:
28 explicit MythCommFlagPlayer(PlayerContext* Context, PlayerFlags Flags = kNoFlags);
29 bool RebuildSeekTable(bool ShowPercentage = true, StatusCallback Callback = nullptr, void* Opaque = nullptr);
30 MythVideoFrame* GetRawVideoFrame(long long FrameNumber = -1);
31};
32
33#endif
static QWaitCondition s_wait
static QHash< DecoderBase *, uint > s_count
static uint GetCount(DecoderBase *Decoder)
void run() override
static QMutex s_lock
static void Wait(DecoderBase *Decoder)
DecoderBase * m_decoder
MythRebuildSaver(DecoderBase *Decoder, uint64_t First, uint64_t Last)
unsigned int uint
Definition: freesurround.h:24
static int RebuildSeekTable(ProgramInfo *pginfo, int jobid, bool writefile=false)
PlayerFlags
Definition: mythplayer.h:65
@ kNoFlags
Definition: mythplayer.h:66
void(*)(int, void *) StatusCallback
Definition: mythplayer.h:51
#define MTV_PUBLIC
Definition: mythtvexp.h:15