MythTV  master
avformatdecoderbd.h
Go to the documentation of this file.
1 #ifndef AVFORMATDECODERBD_H
2 #define AVFORMATDECODERBD_H
3 
4 #include "avformatdecoder.h"
5 
7 {
8  public:
9  AvFormatDecoderBD(MythPlayer *parent, const ProgramInfo &pginfo,
10  PlayerFlags flags);
11  void Reset(bool reset_video_data, bool seek_reset, bool reset_file) override; // AvFormatDecoder
12  void UpdateFramesPlayed(void) override; // AvFormatDecoder
13  int ReadPacket(AVFormatContext *ctx, AVPacket* pkt, bool& storePacket) override; // AvFormatDecoder
14 
15  protected:
16  bool IsValidStream(int streamid) override; // AvFormatDecoder
17 
18  private:
19  bool DoRewindSeek(long long desiredFrame) override; // AvFormatDecoder
20  void DoFastForwardSeek(long long desiredFrame, bool &needflush) override; // AvFormatDecoder
21  void StreamChangeCheck(void) override; // AvFormatDecoder
22  int GetSubtitleLanguage(uint subtitle_index, uint stream_index) override; // AvFormatDecoder
23  int GetAudioLanguage(uint audio_index, uint stream_index) override; // AvFormatDecoder
24 
25  long long BDFindPosition(long long desiredFrame);
26 };
27 
28 #endif // AVFORMATDECODERBD_H
PlayerFlags
Definition: mythplayer.h:88
bool IsValidStream(int streamid) override
int GetAudioLanguage(uint audio_index, uint stream_index) override
void Reset(bool reset_video_data, bool seek_reset, bool reset_file) override
unsigned int uint
Definition: compat.h:140
int ReadPacket(AVFormatContext *ctx, AVPacket *pkt, bool &storePacket) override
void UpdateFramesPlayed(void) override
bool DoRewindSeek(long long desiredFrame) override
Holds information on recordings and videos.
Definition: programinfo.h:66
AvFormatDecoderBD(MythPlayer *parent, const ProgramInfo &pginfo, PlayerFlags flags)
long long BDFindPosition(long long desiredFrame)
A decoder for video files.
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...
int GetSubtitleLanguage(uint subtitle_index, uint stream_index) override
Returns DVD Subtitle language.
void StreamChangeCheck(void) override