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 
7 class MythRebuildSaver : public QRunnable
8 {
9  public:
10  MythRebuildSaver(DecoderBase* Decoder, uint64_t First, uint64_t Last);
11  void run () override;
12  static uint GetCount (DecoderBase* Decoder);
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
MythRebuildSaver::s_count
static QHash< DecoderBase *, uint > s_count
Definition: mythcommflagplayer.h:22
StatusCallback
void(*)(int, void *) StatusCallback
Definition: mythplayer.h:51
MythRebuildSaver::m_last
uint64_t m_last
Definition: mythcommflagplayer.h:18
MythRebuildSaver::Wait
static void Wait(DecoderBase *Decoder)
Definition: mythcommflagplayer.cpp:44
MythRebuildSaver
Definition: mythcommflagplayer.h:7
mythplayer.h
PlayerFlags
PlayerFlags
Definition: mythplayer.h:64
MythPlayer
Definition: mythplayer.h:83
Decoder
Definition: decoder.h:70
AutoExtendType::Last
@ Last
MythRebuildSaver::m_decoder
DecoderBase * m_decoder
Definition: mythcommflagplayer.h:16
MythCommFlagPlayer
Definition: mythcommflagplayer.h:25
uint
unsigned int uint
Definition: compat.h:81
MythRebuildSaver::s_wait
static QWaitCondition s_wait
Definition: mythcommflagplayer.h:21
MTV_PUBLIC
#define MTV_PUBLIC
Definition: mythtvexp.h:15
MythRebuildSaver::run
void run() override
Definition: mythcommflagplayer.cpp:28
kNoFlags
@ kNoFlags
Definition: mythplayer.h:66
MythRebuildSaver::s_lock
static QMutex s_lock
Definition: mythcommflagplayer.h:20
RebuildSeekTable
static int RebuildSeekTable(ProgramInfo *pginfo, int jobid, bool writefile=false)
Definition: mythcommflag.cpp:859
PlayerContext
Definition: playercontext.h:49
MythRebuildSaver::MythRebuildSaver
MythRebuildSaver(DecoderBase *Decoder, uint64_t First, uint64_t Last)
Definition: mythcommflagplayer.cpp:19
MythVideoFrame
Definition: mythframe.h:88
DecoderBase
Definition: decoderbase.h:120
MythRebuildSaver::GetCount
static uint GetCount(DecoderBase *Decoder)
Definition: mythcommflagplayer.cpp:38
MythRebuildSaver::m_first
uint64_t m_first
Definition: mythcommflagplayer.h:17