MythTV  master
mythtranscodeplayer.h
Go to the documentation of this file.
1 #ifndef MYTHTRANSCODEPLAYER_H
2 #define MYTHTRANSCODEPLAYER_H
3 
4 // MythTV
5 #include "libmythtv/mythplayer.h"
6 
8 {
9  public:
10  explicit MythTranscodePlayer(PlayerContext* Context, PlayerFlags Flags = kNoFlags);
11 
12  void SetTranscoding (bool Transcoding);
13  void InitForTranscode (bool CopyAudio, bool CopyVideo);
14  void SetCutList (const frm_dir_map_t& CutList);
15  bool TranscodeGetNextFrame (int& DidFF, bool& KeyFrame, bool HonorCutList);
16 
17  void SetRawAudioState(bool state) { m_rawAudio = state; }
18  bool GetRawAudioState() const { return m_rawAudio ; }
19 
20  void SetRawVideoState(bool state) { m_rawVideo = state; }
21  bool GetRawVideoState() const { return m_rawVideo; }
22 
23  private:
24  bool m_rawAudio {false};
25  bool m_rawVideo {false};
26 };
27 
28 #endif
MythTranscodePlayer::MythTranscodePlayer
MythTranscodePlayer(PlayerContext *Context, PlayerFlags Flags=kNoFlags)
Definition: mythtranscodeplayer.cpp:6
MythTranscodePlayer::TranscodeGetNextFrame
bool TranscodeGetNextFrame(int &DidFF, bool &KeyFrame, bool HonorCutList)
Definition: mythtranscodeplayer.cpp:49
frm_dir_map_t
QMap< uint64_t, MarkTypes > frm_dir_map_t
Frame # -> Mark map.
Definition: programtypes.h:117
mythplayer.h
PlayerFlags
PlayerFlags
Definition: mythplayer.h:64
MythPlayer
Definition: mythplayer.h:83
MythTranscodePlayer::GetRawAudioState
bool GetRawAudioState() const
Definition: mythtranscodeplayer.h:18
MythTranscodePlayer::InitForTranscode
void InitForTranscode(bool CopyAudio, bool CopyVideo)
Definition: mythtranscodeplayer.cpp:22
MythTranscodePlayer::SetRawAudioState
void SetRawAudioState(bool state)
Definition: mythtranscodeplayer.h:17
MythTranscodePlayer::m_rawAudio
bool m_rawAudio
Definition: mythtranscodeplayer.h:24
MythTranscodePlayer::GetRawVideoState
bool GetRawVideoState() const
Definition: mythtranscodeplayer.h:21
kNoFlags
@ kNoFlags
Definition: mythplayer.h:66
MythTranscodePlayer::SetRawVideoState
void SetRawVideoState(bool state)
Definition: mythtranscodeplayer.h:20
PlayerContext
Definition: playercontext.h:49
MythTranscodePlayer::SetTranscoding
void SetTranscoding(bool Transcoding)
Definition: mythtranscodeplayer.cpp:11
MythTranscodePlayer::SetCutList
void SetCutList(const frm_dir_map_t &CutList)
Definition: mythtranscodeplayer.cpp:44
MythTranscodePlayer::m_rawVideo
bool m_rawVideo
Definition: mythtranscodeplayer.h:25
MythTranscodePlayer
Definition: mythtranscodeplayer.h:7