MythTV  master
mythbddecoder.h
Go to the documentation of this file.
1 #ifndef AVFORMATDECODERBD_H
2 #define AVFORMATDECODERBD_H
3 
4 // MythTV
5 #include "avformatdecoder.h"
6 
8 {
9  public:
10  MythBDDecoder(MythPlayer *Parent, const ProgramInfo &PGInfo, PlayerFlags Flags);
11 
12  void Reset (bool ResetVideoData, bool SeekReset, bool ResetFile) override;
13  void UpdateFramesPlayed (void) override;
14  int ReadPacket (AVFormatContext *Ctx, AVPacket* Pkt, bool& StorePacket) override;
15 
16  protected:
17  bool IsValidStream (int StreamId) override;
18 
19  private:
20  bool DoRewindSeek (long long DesiredFrame) override;
21  void DoFastForwardSeek (long long DesiredFrame, bool &Needflush) override;
22  void StreamChangeCheck (void) override;
23  int GetSubtitleLanguage (uint SubtitleIndex, uint StreamIndex) override;
24  int GetAudioLanguage (uint AudioIndex, uint StreamIndex) override;
25 
26  long long BDFindPosition (long long DesiredFrame);
27 };
28 
29 #endif
MythBDDecoder::DoRewindSeek
bool DoRewindSeek(long long DesiredFrame) override
Definition: mythbddecoder.cpp:37
PlayerFlags
PlayerFlags
Definition: mythplayer.h:88
MythPlayer
Definition: mythplayer.h:165
AvFormatDecoder::SeekReset
void SeekReset(long long newkey, uint skipFrames, bool doFlush, bool discardFrames) override
Definition: avformatdecoder.cpp:681
MythBDDecoder::UpdateFramesPlayed
void UpdateFramesPlayed(void) override
Definition: mythbddecoder.cpp:27
MythBDDecoder::GetSubtitleLanguage
int GetSubtitleLanguage(uint SubtitleIndex, uint StreamIndex) override
Returns DVD Subtitle language.
Definition: mythbddecoder.cpp:84
MythBDDecoder::GetAudioLanguage
int GetAudioLanguage(uint AudioIndex, uint StreamIndex) override
Definition: mythbddecoder.cpp:95
MythBDDecoder::BDFindPosition
long long BDFindPosition(long long DesiredFrame)
Definition: mythbddecoder.cpp:132
MythBDDecoder::ReadPacket
int ReadPacket(AVFormatContext *Ctx, AVPacket *Pkt, bool &StorePacket) override
Definition: mythbddecoder.cpp:106
AvFormatDecoder
A decoder for video files.
Definition: avformatdecoder.h:89
uint
unsigned int uint
Definition: compat.h:140
MythBDDecoder::Reset
void Reset(bool ResetVideoData, bool SeekReset, bool ResetFile) override
Definition: mythbddecoder.cpp:21
ProgramInfo
Holds information on recordings and videos.
Definition: programinfo.h:68
avformatdecoder.h
MythBDDecoder::StreamChangeCheck
void StreamChangeCheck(void) override
Definition: mythbddecoder.cpp:59
MythBDDecoder::MythBDDecoder
MythBDDecoder(MythPlayer *Parent, const ProgramInfo &PGInfo, PlayerFlags Flags)
Definition: mythbddecoder.cpp:9
MythBDDecoder::IsValidStream
bool IsValidStream(int StreamId) override
Definition: mythbddecoder.cpp:14
MythBDDecoder::DoFastForwardSeek
void DoFastForwardSeek(long long DesiredFrame, bool &Needflush) override
Seeks to the keyframe just before the desiredFrame if exact seeks is enabled, or the frame just after...
Definition: mythbddecoder.cpp:48
MythBDDecoder
Definition: mythbddecoder.h:8