DecoderBase Class Reference

#include <decoderbase.h>

Inheritance diagram for DecoderBase:
AvFormatDecoder DummyDecoder NuppelDecoder AvFormatDecoderBD AvFormatDecoderDVD

List of all members.

Classes

struct  posmapentry

Public Member Functions

 DecoderBase (MythPlayer *parent, const ProgramInfo &pginfo)
virtual ~DecoderBase ()
virtual void Reset (bool reset_video_data, bool seek_reset, bool reset_file)
virtual int OpenFile (RingBuffer *rbuffer, bool novideo, char testbuf[kDecoderProbeBufferSize], int testbufsize=kDecoderProbeBufferSize)=0
virtual void SetEof (bool eof)
bool GetEof (void) const
void setExactSeeks (bool exact)
bool getExactSeeks (void) const
void setLiveTVMode (bool live)
void SetProgramInfo (const ProgramInfo &pginfo)
void SetLowBuffers (bool low)
virtual void SetDisablePassThrough (bool disable)
 Disables AC3/DTS pass through.
virtual void setWatchingRecording (bool mode)
virtual bool GetFrame (DecodeType)=0
 Demux, preprocess and possibly decode a frame of video/audio.
MythPlayerGetPlayer ()
virtual int GetNumChapters (void)
virtual int GetCurrentChapter (long long framesPlayed)
virtual void GetChapterTimes (QList< long long > &times)
virtual long long GetChapter (int chapter)
virtual bool DoRewind (long long desiredFrame, bool doflush=true)
virtual bool DoFastForward (long long desiredFrame, bool doflush=true)
 Skips ahead or rewinds to desiredFrame.
float GetVideoAspect (void) const
virtual int64_t NormalizeVideoTimecode (int64_t timecode)
virtual bool IsLastFrameKey (void) const =0
virtual bool IsCodecMPEG (void) const
virtual void WriteStoredData (RingBuffer *rb, bool storevid, long timecodeOffset)=0
virtual void ClearStoredData (void)
virtual void SetRawAudioState (bool state)
virtual bool GetRawAudioState (void) const
virtual void SetRawVideoState (bool state)
virtual bool GetRawVideoState (void) const
virtual long UpdateStoredFrameNum (long frame)=0
virtual double GetFPS (void) const
uint GetRawBitrate (void) const
 Returns the estimated bitrate if the video were played at normal speed.
virtual void UpdateFramesPlayed (void)
long long GetFramesRead (void) const
long long GetFramesPlayed (void) const
virtual QString GetCodecDecoderName (void) const =0
virtual QString GetRawEncodingType (void)
virtual MythCodecID GetVideoCodecID (void) const =0
virtual void * GetVideoCodecPrivate (void)
virtual void ResetPosMap (void)
virtual bool SyncPositionMap (void)
 Updates the position map used for skipping frames.
virtual bool PosMapFromDb (void)
virtual bool PosMapFromEnc (void)
 Queries encoder for position map data that has not been committed to the DB yet.
virtual bool FindPosition (long long desired_value, bool search_adjusted, int &lower_bound, int &upper_bound)
uint64_t SavePositionMapDelta (uint64_t first_frame, uint64_t last_frame)
virtual void SeekReset (long long newkey, uint skipFrames, bool doFlush, bool discardFrames)
void setTranscoding (bool value)
bool IsErrored () const
void SetWaitForChange (void)
bool GetWaitForChange (void) const
void SetReadAdjust (long long adjust)
void SetDecodeAllSubtitles (bool val)
virtual QStringList GetTracks (uint type) const
virtual uint GetTrackCount (uint type) const
virtual int GetTrackLanguageIndex (uint type, uint trackNo) const
virtual QString GetTrackDesc (uint type, uint trackNo) const
virtual int SetTrack (uint type, int trackNo)
int GetTrack (uint type) const
StreamInfo GetTrackInfo (uint type, uint trackNo) const
int IncrementTrack (uint type)
int DecrementTrack (uint type)
int ChangeTrack (uint type, int dir)
virtual bool InsertTrack (uint type, const StreamInfo &)
int NextTrack (uint type)
virtual int GetTeletextDecoderType (void) const
virtual QString GetXDS (const QString &) const
virtual QByteArray GetSubHeader (uint trackNo) const
virtual void GetAttachmentData (uint trackNo, QByteArray &filename, QByteArray &data)
virtual bool SetAudioByComponentTag (int)
virtual bool SetVideoByComponentTag (int)
void SaveTotalDuration (void)
void ResetTotalDuration (void)
void SaveTotalFrames (void)

Protected Types

typedef struct
DecoderBase::posmapentry 
PosMapEntry

Protected Member Functions

virtual int AutoSelectTrack (uint type)
 Select best track.
void AutoSelectTracks (void)
void ResetTracks (void)
void FileChanged (void)
virtual bool DoRewindSeek (long long desiredFrame)
virtual void DoFastForwardSeek (long long desiredFrame, bool &needflush)
 Seeks to the keyframe just before the desiredFrame if exact seeks is enabled, or the frame just after it if exact seeks is not enabled.
long long ConditionallyUpdatePosMap (long long desiredFrame)
long long GetLastFrameInPosMap (void) const
unsigned long GetPositionMapSize (void) const
long long GetKey (const PosMapEntry &entry) const

Protected Attributes

MythPlayerm_parent
ProgramInfom_playbackinfo
AudioPlayerm_audio
RingBufferringBuffer
int current_width
int current_height
float current_aspect
double fps
uint bitrate
long long framesPlayed
long long framesRead
int64_t totalDuration
long long lastKey
int keyframedist
long long indexOffset
bool ateof
bool exitafterdecoded
bool transcoding
bool hasFullPositionMap
bool recordingHasPositionMap
bool posmapStarted
MarkTypes positionMapType
QMutex m_positionMapLock
vector< PosMapEntrym_positionMap
bool dontSyncPositionMap
bool exactseeks
bool livetv
bool watchingrecording
bool hasKeyFrameAdjustTable
bool lowbuffers
bool getrawframes
bool getrawvideo
bool errored
bool waitingForChange
long long readAdjust
bool justAfterChange
bool decodeAllSubtitles
int currentTrack [kTrackTypeCount]
sinfo_vec_t tracks [kTrackTypeCount]
StreamInfo wantedTrack [kTrackTypeCount]
StreamInfo selectedTrack [(uint) kTrackTypeCount]
vector< int > languagePreference
 language preferences for auto-selection of streams

Detailed Description

Definition at line 88 of file decoderbase.h.


Member Typedef Documentation


Constructor & Destructor Documentation

DecoderBase::DecoderBase ( MythPlayer parent,
const ProgramInfo pginfo 
)

Definition at line 22 of file decoderbase.cpp.

DecoderBase::~DecoderBase (  )  [virtual]

Definition at line 57 of file decoderbase.cpp.


Member Function Documentation

void DecoderBase::Reset ( bool  reset_video_data,
bool  seek_reset,
bool  reset_file 
) [virtual]

Reimplemented in AvFormatDecoder, AvFormatDecoderBD, and AvFormatDecoderDVD.

Definition at line 70 of file decoderbase.cpp.

Referenced by MythPlayer::ResetPlaying().

virtual int DecoderBase::OpenFile ( RingBuffer rbuffer,
bool  novideo,
char  testbuf[kDecoderProbeBufferSize],
int  testbufsize = kDecoderProbeBufferSize 
) [pure virtual]

Implemented in AvFormatDecoder, and NuppelDecoder.

Referenced by MythPlayer::OpenFile().

virtual void DecoderBase::SetEof ( bool  eof  )  [inline, virtual]

Reimplemented in AvFormatDecoder.

Definition at line 100 of file decoderbase.h.

Referenced by NuppelDecoder::GetFrame(), Reset(), and MythPlayer::SetEof().

bool DecoderBase::GetEof ( void   )  const [inline]

Definition at line 101 of file decoderbase.h.

Referenced by MythPlayer::GetEof().

void DecoderBase::setExactSeeks ( bool  exact  )  [inline]
bool DecoderBase::getExactSeeks ( void   )  const [inline]

Definition at line 104 of file decoderbase.h.

Referenced by AvFormatDecoder::DoFastForward().

void DecoderBase::setLiveTVMode ( bool  live  )  [inline]

Definition at line 105 of file decoderbase.h.

Referenced by MythPlayer::OpenFile().

void DecoderBase::SetProgramInfo ( const ProgramInfo pginfo  ) 
void DecoderBase::SetLowBuffers ( bool  low  )  [inline]
virtual void DecoderBase::SetDisablePassThrough ( bool  disable  )  [inline, virtual]

Disables AC3/DTS pass through.

Reimplemented in AvFormatDecoder.

Definition at line 112 of file decoderbase.h.

Referenced by MythPlayer::ChangeSpeed().

void DecoderBase::setWatchingRecording ( bool  mode  )  [virtual]

Definition at line 102 of file decoderbase.cpp.

Referenced by MythPlayer::OpenFile(), and MythPlayer::SetWatchingRecording().

virtual bool DecoderBase::GetFrame ( DecodeType   )  [pure virtual]

Demux, preprocess and possibly decode a frame of video/audio.

Implemented in AvFormatDecoder, DummyDecoder, and NuppelDecoder.

Referenced by MythPlayer::DecoderGetFrame(), MythPlayer::DecoderGetFrameFFREW(), DoFastForward(), and MythPlayer::TranscodeGetNextFrame().

MythPlayer* DecoderBase::GetPlayer (  )  [inline]
virtual int DecoderBase::GetNumChapters ( void   )  [inline, virtual]

Reimplemented in AvFormatDecoder.

Definition at line 119 of file decoderbase.h.

Referenced by MythPlayer::GetNumChapters().

virtual int DecoderBase::GetCurrentChapter ( long long  framesPlayed  )  [inline, virtual]

Reimplemented in AvFormatDecoder.

Definition at line 120 of file decoderbase.h.

Referenced by MythPlayer::GetCurrentChapter().

virtual void DecoderBase::GetChapterTimes ( QList< long long > &  times  )  [inline, virtual]

Reimplemented in AvFormatDecoder.

Definition at line 121 of file decoderbase.h.

Referenced by MythPlayer::GetChapterTimes().

virtual long long DecoderBase::GetChapter ( int  chapter  )  [inline, virtual]

Reimplemented in AvFormatDecoder.

Definition at line 122 of file decoderbase.h.

Referenced by MythPlayer::GetChapter().

bool DecoderBase::DoRewind ( long long  desiredFrame,
bool  doflush = true 
) [virtual]

Reimplemented in AvFormatDecoder.

Definition at line 510 of file decoderbase.cpp.

Referenced by MythPlayer::DecoderGetFrameREW(), MythPlayer::DecoderLoop(), and DoFastForward().

bool DecoderBase::DoFastForward ( long long  desiredFrame,
bool  doflush = true 
) [virtual]

Skips ahead or rewinds to desiredFrame.

If discardFrames is true and cached frames are released and playback continues at the desiredFrame, if it is not any interviening frames between the last frame already in the buffer and the desiredFrame are released, but none of the frames decoded at the time this is called are released.

Reimplemented in AvFormatDecoder.

Definition at line 640 of file decoderbase.cpp.

Referenced by MythPlayer::DecoderGetFrameFFREW(), and MythPlayer::DecoderLoop().

float DecoderBase::GetVideoAspect ( void   )  const [inline]

Definition at line 126 of file decoderbase.h.

Referenced by Transcode::TranscodeFile().

virtual int64_t DecoderBase::NormalizeVideoTimecode ( int64_t  timecode  )  [inline, virtual]

Reimplemented in AvFormatDecoder.

Definition at line 128 of file decoderbase.h.

Referenced by SubtitleScreen::DisplayTextSubtitles().

virtual bool DecoderBase::IsLastFrameKey ( void   )  const [pure virtual]
virtual bool DecoderBase::IsCodecMPEG ( void   )  const [inline, virtual]

Reimplemented in AvFormatDecoder.

Definition at line 131 of file decoderbase.h.

Referenced by MythPlayer::GetSecondsPlayed().

virtual void DecoderBase::WriteStoredData ( RingBuffer rb,
bool  storevid,
long  timecodeOffset 
) [pure virtual]
virtual void DecoderBase::ClearStoredData ( void   )  [inline, virtual]

Reimplemented in NuppelDecoder.

Definition at line 134 of file decoderbase.h.

Referenced by MythPlayer::TranscodeGetNextFrame().

virtual void DecoderBase::SetRawAudioState ( bool  state  )  [inline, virtual]

Reimplemented in AvFormatDecoder.

Definition at line 135 of file decoderbase.h.

Referenced by MythPlayer::InitForTranscode().

virtual bool DecoderBase::GetRawAudioState ( void   )  const [inline, virtual]

Reimplemented in AvFormatDecoder.

Definition at line 136 of file decoderbase.h.

Referenced by MythPlayer::GetRawAudioState().

virtual void DecoderBase::SetRawVideoState ( bool  state  )  [inline, virtual]

Reimplemented in AvFormatDecoder.

Definition at line 137 of file decoderbase.h.

Referenced by MythPlayer::InitForTranscode().

virtual bool DecoderBase::GetRawVideoState ( void   )  const [inline, virtual]

Reimplemented in AvFormatDecoder.

Definition at line 138 of file decoderbase.h.

Referenced by MythPlayer::WriteStoredData().

virtual long DecoderBase::UpdateStoredFrameNum ( long  frame  )  [pure virtual]
virtual double DecoderBase::GetFPS ( void   )  const [inline, virtual]

Definition at line 142 of file decoderbase.h.

Referenced by MythPlayer::IsReallyNearEnd().

uint DecoderBase::GetRawBitrate ( void   )  const [inline]

Returns the estimated bitrate if the video were played at normal speed.

Definition at line 144 of file decoderbase.h.

Referenced by NuppelDecoder::GetFrame(), MythPlayer::JumpToProgram(), NuppelDecoder::OpenFile(), and MythPlayer::SwitchToProgram().

void DecoderBase::UpdateFramesPlayed ( void   )  [virtual]
long long DecoderBase::GetFramesRead ( void   )  const [inline]
long long DecoderBase::GetFramesPlayed ( void   )  const [inline]

Definition at line 148 of file decoderbase.h.

Referenced by MythPlayer::DecoderGetFrameREW().

virtual QString DecoderBase::GetCodecDecoderName ( void   )  const [pure virtual]
virtual QString DecoderBase::GetRawEncodingType ( void   )  [inline, virtual]

Reimplemented in AvFormatDecoder, and NuppelDecoder.

Definition at line 151 of file decoderbase.h.

Referenced by MythPlayer::GetCodecDescription().

virtual MythCodecID DecoderBase::GetVideoCodecID ( void   )  const [pure virtual]
virtual void* DecoderBase::GetVideoCodecPrivate ( void   )  [inline, virtual]

Reimplemented in AvFormatDecoder.

Definition at line 153 of file decoderbase.h.

Referenced by MythPlayer::InitVideo(), and MythPlayer::ReinitVideo().

void DecoderBase::ResetPosMap ( void   )  [virtual]
bool DecoderBase::SyncPositionMap ( void   )  [virtual]

Updates the position map used for skipping frames.

There are different sources for position maps, depending on where we are getting the stream from.

positionmap sources: live tv: 1. remote encoder 2. stream parsing decide keyframedist based on samples from remote encoder

watching recording: 1. initial fill from db 2. incremental from remote encoder, until it finishes recording 3. then db again (which should be the final time) 4. stream parsing decide keyframedist based on which table in db

watching prerecorded: 1. initial fill from db is all that's needed

Reimplemented in DummyDecoder.

Definition at line 297 of file decoderbase.cpp.

Referenced by ConditionallyUpdatePosMap(), MythPlayer::DecoderLoop(), DoFastForward(), AvFormatDecoder::HandleGopStart(), NuppelDecoder::OpenFile(), AvFormatDecoder::OpenFile(), AvFormatDecoderDVD::Reset(), AvFormatDecoderBD::Reset(), setWatchingRecording(), AvFormatDecoderDVD::StreamChangeCheck(), and AvFormatDecoderBD::StreamChangeCheck().

bool DecoderBase::PosMapFromDb ( void   )  [virtual]

Definition at line 115 of file decoderbase.cpp.

Referenced by SyncPositionMap().

bool DecoderBase::PosMapFromEnc ( void   )  [virtual]

Queries encoder for position map data that has not been committed to the DB yet.

PosMapFromDb(void) must be called first in order to set positionMapType and keyframedist correctly.

Definition at line 225 of file decoderbase.cpp.

Referenced by SyncPositionMap().

bool DecoderBase::FindPosition ( long long  desired_value,
bool  search_adjusted,
int &  lower_bound,
int &  upper_bound 
) [virtual]

Definition at line 391 of file decoderbase.cpp.

Referenced by DoFastForwardSeek(), and DoRewindSeek().

uint64_t DecoderBase::SavePositionMapDelta ( uint64_t  first_frame,
uint64_t  last_frame 
)

Definition at line 468 of file decoderbase.cpp.

Referenced by RebuildSaver::run().

void DecoderBase::SeekReset ( long long  newkey,
uint  skipFrames,
bool  doFlush,
bool  discardFrames 
) [virtual]

Reimplemented in AvFormatDecoder, and NuppelDecoder.

Definition at line 97 of file decoderbase.cpp.

Referenced by DoFastForward(), MythDVDPlayer::DoJumpChapter(), DoRewind(), and Reset().

void DecoderBase::setTranscoding ( bool  value  )  [inline]

Definition at line 167 of file decoderbase.h.

Referenced by MythPlayer::OpenFile(), and MythPlayer::SetTranscoding().

bool DecoderBase::IsErrored (  )  const [inline]

Definition at line 169 of file decoderbase.h.

Referenced by MythPlayer::OpenFile(), and MythPlayer::ResetPlaying().

void DecoderBase::SetWaitForChange ( void   ) 

Definition at line 799 of file decoderbase.cpp.

bool DecoderBase::GetWaitForChange ( void   )  const

Definition at line 804 of file decoderbase.cpp.

Referenced by MythPlayer::EventLoop().

void DecoderBase::SetReadAdjust ( long long  adjust  ) 

Definition at line 794 of file decoderbase.cpp.

void DecoderBase::SetDecodeAllSubtitles ( bool  val  )  [inline]

Definition at line 176 of file decoderbase.h.

Referenced by MythCCExtractorPlayer::run().

QStringList DecoderBase::GetTracks ( uint  type  )  const [virtual]

Definition at line 809 of file decoderbase.cpp.

Referenced by MythPlayer::GetTracks().

virtual uint DecoderBase::GetTrackCount ( uint  type  )  const [inline, virtual]
int DecoderBase::GetTrackLanguageIndex ( uint  type,
uint  trackNo 
) const [virtual]

Definition at line 821 of file decoderbase.cpp.

Referenced by MythPlayer::EnableCaptions().

QString DecoderBase::GetTrackDesc ( uint  type,
uint  trackNo 
) const [virtual]
int DecoderBase::SetTrack ( uint  type,
int  trackNo 
) [virtual]

Reimplemented in AvFormatDecoder.

Definition at line 851 of file decoderbase.cpp.

Referenced by DecrementTrack(), IncrementTrack(), MythPlayer::SetTrack(), and Transcode::TranscodeFile().

int DecoderBase::GetTrack ( uint  type  )  const [inline]

Definition at line 184 of file decoderbase.h.

Referenced by SubtitleScreen::DisplayAVSubtitles(), and MythPlayer::GetTrack().

StreamInfo DecoderBase::GetTrackInfo ( uint  type,
uint  trackNo 
) const

Definition at line 871 of file decoderbase.cpp.

Referenced by MythPlayer::SetTrack().

int DecoderBase::IncrementTrack ( uint  type  )  [inline]

Definition at line 287 of file decoderbase.h.

Referenced by ChangeTrack().

int DecoderBase::DecrementTrack ( uint  type  )  [inline]

Definition at line 296 of file decoderbase.h.

Referenced by ChangeTrack().

int DecoderBase::ChangeTrack ( uint  type,
int  dir 
) [inline]

Definition at line 305 of file decoderbase.h.

Referenced by MythPlayer::ChangeTrack().

bool DecoderBase::InsertTrack ( uint  type,
const StreamInfo info 
) [virtual]

Definition at line 884 of file decoderbase.cpp.

Referenced by CC708Reader::DefineWindow().

int DecoderBase::NextTrack ( uint  type  )  [inline]

Definition at line 325 of file decoderbase.h.

Referenced by MythPlayer::ChangeCaptionTrack().

virtual int DecoderBase::GetTeletextDecoderType ( void   )  const [inline, virtual]

Reimplemented in AvFormatDecoder.

Definition at line 192 of file decoderbase.h.

virtual QString DecoderBase::GetXDS ( const QString &   )  const [inline, virtual]

Reimplemented in AvFormatDecoder.

Definition at line 194 of file decoderbase.h.

Referenced by MythPlayer::GetXDS().

virtual QByteArray DecoderBase::GetSubHeader ( uint  trackNo  )  const [inline, virtual]

Reimplemented in AvFormatDecoder.

Definition at line 195 of file decoderbase.h.

Referenced by SubtitleScreen::InitialiseAssTrack().

virtual void DecoderBase::GetAttachmentData ( uint  trackNo,
QByteArray &  filename,
QByteArray &  data 
) [inline, virtual]

Reimplemented in AvFormatDecoder.

Definition at line 196 of file decoderbase.h.

Referenced by SubtitleScreen::LoadAssFonts().

virtual bool DecoderBase::SetAudioByComponentTag ( int   )  [inline, virtual]

Reimplemented in AvFormatDecoder.

Definition at line 200 of file decoderbase.h.

Referenced by MythPlayer::SetAudioByComponentTag().

virtual bool DecoderBase::SetVideoByComponentTag ( int   )  [inline, virtual]

Reimplemented in AvFormatDecoder.

Definition at line 201 of file decoderbase.h.

Referenced by MythPlayer::SetVideoByComponentTag().

void DecoderBase::SaveTotalDuration ( void   ) 

Definition at line 1047 of file decoderbase.cpp.

Referenced by MythPlayer::SaveTotalDuration().

void DecoderBase::ResetTotalDuration ( void   )  [inline]

Definition at line 204 of file decoderbase.h.

Referenced by MythPlayer::ResetTotalDuration().

void DecoderBase::SaveTotalFrames ( void   ) 

Definition at line 1055 of file decoderbase.cpp.

int DecoderBase::AutoSelectTrack ( uint  type  )  [protected, virtual]

Select best track.

In case there's only one track available, always choose it.

If there is a user selected track we try to find it.

If we can't find the user selected track we try to picked according to the ISO639Language[0..] settings.

In case there are no ISOLanguage[0..] settings, or no preferred language is found, the first found track stream is chosen

Returns:
track if a track was selected, -1 otherwise

Reimplemented in AvFormatDecoder.

Definition at line 915 of file decoderbase.cpp.

Referenced by AutoSelectTracks().

void DecoderBase::AutoSelectTracks ( void   )  [inline, protected]

Definition at line 313 of file decoderbase.h.

Referenced by AvFormatDecoder::GetFrame(), and AvFormatDecoder::OpenFile().

void DecoderBase::ResetTracks ( void   )  [inline, protected]

Definition at line 319 of file decoderbase.h.

Referenced by DecoderBase(), and AvFormatDecoder::ScanStreams().

void DecoderBase::FileChanged ( void   )  [protected]

Definition at line 781 of file decoderbase.cpp.

Referenced by NuppelDecoder::GetFrame(), and AvFormatDecoder::GetFrame().

bool DecoderBase::DoRewindSeek ( long long  desiredFrame  )  [protected, virtual]

Reimplemented in AvFormatDecoder, AvFormatDecoderBD, and AvFormatDecoderDVD.

Definition at line 541 of file decoderbase.cpp.

Referenced by DoRewind().

void DecoderBase::DoFastForwardSeek ( long long  desiredFrame,
bool needflush 
) [protected, virtual]

Seeks to the keyframe just before the desiredFrame if exact seeks is enabled, or the frame just after it if exact seeks is not enabled.

The seek is not made if framesPlayed is greater than the keyframe this would jump too. This means that frame-by-frame seeking after a keyframe must be done elsewhere.

If the seek is made the needflush parameter is set.

Parameters:
desiredFrame frame we are attempting to seek to.
needflush set to true if a seek is made.

Reimplemented in AvFormatDecoder, AvFormatDecoderBD, and AvFormatDecoderDVD.

Definition at line 752 of file decoderbase.cpp.

Referenced by DoFastForward().

long long DecoderBase::ConditionallyUpdatePosMap ( long long  desiredFrame  )  [protected]

Definition at line 597 of file decoderbase.cpp.

Referenced by DoFastForward(), and DoRewindSeek().

long long DecoderBase::GetLastFrameInPosMap ( void   )  const [protected]

Definition at line 586 of file decoderbase.cpp.

Referenced by ConditionallyUpdatePosMap(), and DoFastForward().

unsigned long DecoderBase::GetPositionMapSize ( void   )  const [protected]

Definition at line 269 of file decoderbase.cpp.

Referenced by DoRewindSeek(), and SyncPositionMap().

long long DecoderBase::GetKey ( const PosMapEntry entry  )  const [protected]

Member Data Documentation

int DecoderBase::current_width [protected]
int DecoderBase::current_height [protected]
float DecoderBase::current_aspect [protected]
double DecoderBase::fps [protected]
long long DecoderBase::framesPlayed [protected]
long long DecoderBase::framesRead [protected]
long long DecoderBase::lastKey [protected]
int DecoderBase::keyframedist [protected]
long long DecoderBase::indexOffset [protected]

Definition at line 245 of file decoderbase.h.

Referenced by FindPosition(), GetKey(), PosMapFromDb(), and PosMapFromEnc().

bool DecoderBase::ateof [protected]

Definition at line 248 of file decoderbase.h.

Referenced by DoFastForward(), and AvFormatDecoder::PreProcessVideoPacket().

Definition at line 249 of file decoderbase.h.

Referenced by setTranscoding().

Definition at line 253 of file decoderbase.h.

Referenced by ResetPosMap(), setWatchingRecording(), and SyncPositionMap().

QMutex DecoderBase::m_positionMapLock [mutable, protected]

Definition at line 258 of file decoderbase.h.

Referenced by AvFormatDecoder::OpenFile(), Reset(), and SyncPositionMap().

Definition at line 264 of file decoderbase.h.

Referenced by DoFastForwardSeek(), DoRewindSeek(), GetKey(), and NuppelDecoder::OpenFile().

Definition at line 266 of file decoderbase.h.

Referenced by AvFormatDecoder::GetFrame(), and SetLowBuffers().

Definition at line 271 of file decoderbase.h.

Referenced by IsErrored(), and NuppelDecoder::NuppelDecoder().

long long DecoderBase::readAdjust [protected]

Definition at line 275 of file decoderbase.h.

Referenced by FileChanged(), and AvFormatDecoder::PreProcessVideoPacket().

int DecoderBase::currentTrack[kTrackTypeCount] [protected]
sinfo_vec_t DecoderBase::tracks[kTrackTypeCount] [protected]
StreamInfo DecoderBase::wantedTrack[kTrackTypeCount] [protected]

Definition at line 281 of file decoderbase.h.

Referenced by AvFormatDecoder::AutoSelectAudioTrack(), AutoSelectTrack(), and SetTrack().

StreamInfo DecoderBase::selectedTrack[(uint) kTrackTypeCount] [protected]
vector<int> DecoderBase::languagePreference [protected]

language preferences for auto-selection of streams

Definition at line 284 of file decoderbase.h.

Referenced by AvFormatDecoder::AutoSelectAudioTrack(), and AutoSelectTrack().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Fri Feb 10 06:41:55 2012 for MythTV by  doxygen 1.6.3