#include <decoderbase.h>

Definition at line 57 of file decoderbase.h.
Public Member Functions | |
| DecoderBase (NuppelVideoPlayer *parent, ProgramInfo *pginfo) | |
| virtual | ~DecoderBase () |
| virtual void | Reset (void) |
| virtual int | OpenFile (RingBuffer *rbuffer, bool novideo, char testbuf[kDecoderProbeBufferSize], int testbufsize=kDecoderProbeBufferSize)=0 |
| void | setExactSeeks (bool exact) |
| void | setLiveTVMode (bool live) |
| void | setRecorder (RemoteEncoder *recorder) |
| void | SetProgramInfo (ProgramInfo *pginfo) |
| void | SetLowBuffers (bool low) |
| virtual void | SetDisablePassThrough (bool disable) |
| Disables AC3/DTS pass through. | |
| virtual void | setWatchingRecording (bool mode) |
| virtual bool | GetFrame (int onlyvideo)=0 |
| Decode a frame of video/audio. | |
| NuppelVideoPlayer * | GetNVP () |
| virtual bool | DoRewind (long long desiredFrame, bool doflush=true) |
| virtual bool | DoFastForward (long long desiredFrame, bool doflush=true) |
| Skips ahead or rewinds to desiredFrame. | |
| virtual bool | isLastFrameKey ()=0 |
| 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 |
| virtual QString | GetCodecDecoderName (void) const =0 |
| virtual MythCodecID | GetVideoCodecID (void) const =0 |
| virtual void * | GetVideoCodecPrivate (void) |
| virtual bool | SyncPositionMap (void) |
| Updates the position map used for skipping frames. | |
| virtual bool | PosMapFromDb (void) |
| virtual bool | PosMapFromEnc (void) |
| virtual bool | FindPosition (long long desired_value, bool search_adjusted, int &lower_bound, int &upper_bound) |
| virtual void | SetPositionMap (void) |
| virtual void | SeekReset (long long newkey, uint skipFrames, bool doFlush, bool discardFrames) |
| void | setTranscoding (bool value) |
| bool | IsErrored () |
| void | SetWaitForChange (void) |
| bool | GetWaitForChange (void) |
| void | SetReadAdjust (long long adjust) |
| void | ChangeDVDTrack (bool ffw) |
| long long | DVDFindPosition (long long desiredFrame) |
| void | UpdateDVDFramesPlayed (void) |
| 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 &) |
| virtual int | GetTeletextDecoderType (void) const |
| virtual void | SetTeletextDecoderViewer (TeletextViewer *) |
| virtual QString | GetXDS (const QString &) const |
| virtual bool | SetAudioByComponentTag (int) |
| virtual bool | SetVideoByComponentTag (int) |
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) |
| bool | DoRewindSeek (long long desiredFrame) |
| 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 | GetLastFrameInPosMap (long long desiredFrame) |
| long long | GetKey (PosMapEntry &entry) const |
Protected Attributes | |
| NuppelVideoPlayer * | m_parent |
| ProgramInfo * | m_playbackinfo |
| RingBuffer * | ringBuffer |
| RemoteEncoder * | nvr_enc |
| int | current_width |
| int | current_height |
| float | current_aspect |
| double | fps |
| uint | bitrate |
| long long | framesPlayed |
| long long | framesRead |
| long long | lastKey |
| int | keyframedist |
| long long | indexOffset |
| bool | ateof |
| bool | exitafterdecoded |
| bool | transcoding |
| bool | hasFullPositionMap |
| bool | recordingHasPositionMap |
| bool | posmapStarted |
| MarkTypes | positionMapType |
| QValueVector< PosMapEntry > | m_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 |
| 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 | |
Classes | |
| struct | posmapentry |
typedef struct DecoderBase::posmapentry DecoderBase::PosMapEntry [protected] |
| DecoderBase::DecoderBase | ( | NuppelVideoPlayer * | parent, | |
| ProgramInfo * | pginfo | |||
| ) |
Definition at line 20 of file decoderbase.cpp.
| DecoderBase::~DecoderBase | ( | ) | [virtual] |
Definition at line 56 of file decoderbase.cpp.
| void DecoderBase::Reset | ( | void | ) | [virtual] |
Reimplemented in AvFormatDecoder.
Definition at line 72 of file decoderbase.cpp.
Referenced by AvFormatDecoder::Reset(), and NuppelVideoPlayer::ResetPlaying().
| virtual int DecoderBase::OpenFile | ( | RingBuffer * | rbuffer, | |
| bool | novideo, | |||
| char | testbuf[kDecoderProbeBufferSize], | |||
| int | testbufsize = kDecoderProbeBufferSize | |||
| ) | [pure virtual] |
Implemented in AvFormatDecoder, IvtvDecoder, and NuppelDecoder.
Referenced by NuppelVideoPlayer::OpenFile().
| void DecoderBase::setExactSeeks | ( | bool | exact | ) | [inline] |
Definition at line 69 of file decoderbase.h.
Referenced by NuppelVideoPlayer::DoFastForward(), NuppelVideoPlayer::DoKeypress(), NuppelVideoPlayer::DoPause(), NuppelVideoPlayer::DoPlay(), NuppelVideoPlayer::DoRewind(), NuppelVideoPlayer::HandleArbSeek(), NuppelVideoPlayer::InitForTranscode(), NuppelVideoPlayer::JumpToFrame(), NuppelVideoPlayer::JumpToProgram(), NuppelVideoPlayer::OpenFile(), and NuppelVideoPlayer::StartPlaying().
| void DecoderBase::setLiveTVMode | ( | bool | live | ) | [inline] |
| void DecoderBase::setRecorder | ( | RemoteEncoder * | recorder | ) | [inline] |
Definition at line 71 of file decoderbase.h.
Referenced by NuppelVideoPlayer::OpenFile(), and NuppelVideoPlayer::SetRecorder().
| void DecoderBase::SetProgramInfo | ( | ProgramInfo * | pginfo | ) |
Definition at line 62 of file decoderbase.cpp.
Referenced by NuppelVideoPlayer::FileChangedCallback(), NuppelVideoPlayer::JumpToProgram(), and NuppelVideoPlayer::SwitchToProgram().
| void DecoderBase::SetLowBuffers | ( | bool | low | ) | [inline] |
Definition at line 76 of file decoderbase.h.
Referenced by NuppelVideoPlayer::InitForTranscode(), NuppelVideoPlayer::InitVideo(), AvFormatDecoder::InitVideoCodec(), and NuppelVideoPlayer::OpenFile().
| virtual void DecoderBase::SetDisablePassThrough | ( | bool | disable | ) | [inline, virtual] |
Disables AC3/DTS pass through.
Reimplemented in AvFormatDecoder.
Definition at line 78 of file decoderbase.h.
Referenced by NuppelVideoPlayer::DoPlay().
| void DecoderBase::setWatchingRecording | ( | bool | mode | ) | [virtual] |
Definition at line 88 of file decoderbase.cpp.
Referenced by NuppelVideoPlayer::OpenFile(), and NuppelVideoPlayer::SetWatchingRecording().
| virtual bool DecoderBase::GetFrame | ( | int | onlyvideo | ) | [pure virtual] |
Decode a frame of video/audio.
If onlyvideo is +1, decodes the video portion, if it is -1 only decodes the audio portion, if it is 0 it decodes audio and video
Implemented in AvFormatDecoder, DummyDecoder, IvtvDecoder, and NuppelDecoder.
Referenced by DoFastForward(), NuppelVideoPlayer::GetFrameFFREW(), and NuppelVideoPlayer::TranscodeGetNextFrame().
| NuppelVideoPlayer* DecoderBase::GetNVP | ( | ) | [inline] |
Definition at line 85 of file decoderbase.h.
Referenced by AutoSelectTrack(), AvFormatDecoder::AvFormatDecoder(), AvFormatDecoderPrivate::DecodeMPEG2Video(), IvtvDecoder::DoFastForward(), DoFastForward(), AvFormatDecoder::DoFastForward(), DoRewind(), DVDFindPosition(), FileChanged(), AvFormatDecoder::GenerateDummyVideoFrame(), get_avf_buffer(), get_avf_buffer_xvmc(), NuppelDecoder::GetFrame(), IvtvDecoder::GetFrame(), AvFormatDecoder::GetFrame(), AvFormatDecoder::H264PreProcessPkt(), AvFormatDecoder::HandleGopStart(), AvFormatDecoder::InitVideoCodec(), InsertTrack(), IvtvDecoder::MpegPreProcessPkt(), AvFormatDecoder::MpegPreProcessPkt(), NuppelDecoder::OpenFile(), IvtvDecoder::OpenFile(), AvFormatDecoder::OpenFile(), AvFormatDecoder::ProcessDSMCCPacket(), IvtvDecoder::ReadWrite(), release_avf_buffer(), release_nuppel_buffer(), AvFormatDecoder::RemoveAudioStreams(), render_slice_xvmc(), AvFormatDecoder::ScanDSMCCStreams(), AvFormatDecoder::ScanStreams(), NuppelDecoder::SeekReset(), IvtvDecoder::SeekReset(), AvFormatDecoder::SeekReset(), AvFormatDecoder::SetupAudioStream(), IvtvDecoder::StepFrames(), SyncPositionMap(), UpdateDVDFramesPlayed(), IvtvDecoder::UpdateFramesPlayed(), and UpdateFramesPlayed().
Reimplemented in AvFormatDecoder.
Definition at line 432 of file decoderbase.cpp.
Referenced by DoFastForward(), NuppelVideoPlayer::DoPlay(), NuppelVideoPlayer::DoRewind(), AvFormatDecoder::DoRewind(), and NuppelVideoPlayer::GetFrameFFREW().
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, and IvtvDecoder.
Definition at line 545 of file decoderbase.cpp.
Referenced by NuppelVideoPlayer::DoFastForward(), IvtvDecoder::DoFastForward(), AvFormatDecoder::DoFastForward(), NuppelVideoPlayer::DoPause(), NuppelVideoPlayer::GetFrameFFREW(), and NuppelVideoPlayer::TranscodeGetNextFrame().
| virtual bool DecoderBase::isLastFrameKey | ( | ) | [pure virtual] |
Implemented in AvFormatDecoder, DummyDecoder, IvtvDecoder, and NuppelDecoder.
Referenced by NuppelVideoPlayer::TranscodeGetNextFrame().
| virtual void DecoderBase::WriteStoredData | ( | RingBuffer * | rb, | |
| bool | storevid, | |||
| long | timecodeOffset | |||
| ) | [pure virtual] |
Implemented in AvFormatDecoder, DummyDecoder, IvtvDecoder, and NuppelDecoder.
Referenced by NuppelVideoPlayer::WriteStoredData().
| virtual void DecoderBase::ClearStoredData | ( | void | ) | [inline, virtual] |
Reimplemented in NuppelDecoder.
Definition at line 93 of file decoderbase.h.
Referenced by NuppelVideoPlayer::TranscodeGetNextFrame().
| virtual void DecoderBase::SetRawAudioState | ( | bool | state | ) | [inline, virtual] |
Reimplemented in AvFormatDecoder, and IvtvDecoder.
Definition at line 94 of file decoderbase.h.
Referenced by NuppelVideoPlayer::InitForTranscode().
| virtual bool DecoderBase::GetRawAudioState | ( | void | ) | const [inline, virtual] |
Reimplemented in AvFormatDecoder, and IvtvDecoder.
Definition at line 95 of file decoderbase.h.
Referenced by NuppelVideoPlayer::GetRawAudioState().
| virtual void DecoderBase::SetRawVideoState | ( | bool | state | ) | [inline, virtual] |
Reimplemented in AvFormatDecoder, and IvtvDecoder.
Definition at line 96 of file decoderbase.h.
Referenced by NuppelVideoPlayer::InitForTranscode().
| virtual bool DecoderBase::GetRawVideoState | ( | void | ) | const [inline, virtual] |
| virtual long DecoderBase::UpdateStoredFrameNum | ( | long | frame | ) | [pure virtual] |
Implemented in AvFormatDecoder, DummyDecoder, IvtvDecoder, and NuppelDecoder.
Referenced by NuppelVideoPlayer::UpdateStoredFrameNum().
| virtual double DecoderBase::GetFPS | ( | void | ) | const [inline, virtual] |
| uint DecoderBase::GetRawBitrate | ( | void | ) | const [inline] |
Returns the estimated bitrate if the video were played at normal speed.
Definition at line 103 of file decoderbase.h.
Referenced by NuppelDecoder::GetFrame(), NuppelDecoder::OpenFile(), and IvtvDecoder::OpenFile().
| void DecoderBase::UpdateFramesPlayed | ( | void | ) | [virtual] |
Reimplemented in IvtvDecoder.
Definition at line 671 of file decoderbase.cpp.
Referenced by NuppelVideoPlayer::Pause(), and NuppelVideoPlayer::StartPlaying().
| long long DecoderBase::GetFramesRead | ( | void | ) | const [inline] |
Definition at line 106 of file decoderbase.h.
Referenced by NuppelVideoPlayer::GetFrameFFREW(), and NuppelVideoPlayer::IsNearEnd().
| virtual QString DecoderBase::GetCodecDecoderName | ( | void | ) | const [pure virtual] |
Implemented in AvFormatDecoder, DummyDecoder, IvtvDecoder, and NuppelDecoder.
Referenced by NuppelVideoPlayer::SetDecoder().
| virtual MythCodecID DecoderBase::GetVideoCodecID | ( | void | ) | const [pure virtual] |
Implemented in AvFormatDecoder, DummyDecoder, IvtvDecoder, and NuppelDecoder.
Referenced by NuppelVideoPlayer::GetEncodingType().
| virtual void* DecoderBase::GetVideoCodecPrivate | ( | void | ) | [inline, 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 282 of file decoderbase.cpp.
Referenced by NuppelVideoPlayer::FileChangedCallback(), AvFormatDecoder::GetFrame(), GetLastFrameInPosMap(), AvFormatDecoder::HandleGopStart(), NuppelVideoPlayer::JumpToProgram(), NuppelDecoder::OpenFile(), IvtvDecoder::OpenFile(), AvFormatDecoder::OpenFile(), AvFormatDecoder::Reset(), setWatchingRecording(), NuppelVideoPlayer::StartPlaying(), and NuppelVideoPlayer::SwitchToProgram().
| bool DecoderBase::PosMapFromDb | ( | void | ) | [virtual] |
| bool DecoderBase::PosMapFromEnc | ( | void | ) | [virtual] |
| bool DecoderBase::FindPosition | ( | long long | desired_value, | |
| bool | search_adjusted, | |||
| int & | lower_bound, | |||
| int & | upper_bound | |||
| ) | [virtual] |
Definition at line 362 of file decoderbase.cpp.
Referenced by DoFastForwardSeek(), and DoRewindSeek().
| void DecoderBase::SetPositionMap | ( | void | ) | [virtual] |
Definition at line 420 of file decoderbase.cpp.
Referenced by NuppelVideoPlayer::RebuildSeekTable().
| void DecoderBase::SeekReset | ( | long long | newkey, | |
| uint | skipFrames, | |||
| bool | doFlush, | |||
| bool | discardFrames | |||
| ) | [virtual] |
Reimplemented in AvFormatDecoder, IvtvDecoder, and NuppelDecoder.
Definition at line 83 of file decoderbase.cpp.
Referenced by ChangeDVDTrack(), DoFastForward(), DoRewind(), Reset(), NuppelDecoder::SeekReset(), IvtvDecoder::SeekReset(), and AvFormatDecoder::SeekReset().
| void DecoderBase::setTranscoding | ( | bool | value | ) | [inline] |
Definition at line 123 of file decoderbase.h.
Referenced by NuppelVideoPlayer::OpenFile(), and NuppelVideoPlayer::SetTranscoding().
| bool DecoderBase::IsErrored | ( | ) | [inline] |
Definition at line 125 of file decoderbase.h.
Referenced by AvFormatDecoder::GetFrame(), NuppelVideoPlayer::ResetPlaying(), and AvFormatDecoder::ScanStreams().
| void DecoderBase::SetWaitForChange | ( | void | ) |
| bool DecoderBase::GetWaitForChange | ( | void | ) |
| void DecoderBase::SetReadAdjust | ( | long long | adjust | ) |
| void DecoderBase::ChangeDVDTrack | ( | bool | ffw | ) |
Definition at line 703 of file decoderbase.cpp.
Referenced by NuppelVideoPlayer::DoChangeDVDTrack().
| long long DecoderBase::DVDFindPosition | ( | long long | desiredFrame | ) |
Definition at line 726 of file decoderbase.cpp.
Referenced by DoFastForwardSeek(), and DoRewindSeek().
| void DecoderBase::UpdateDVDFramesPlayed | ( | void | ) |
Definition at line 758 of file decoderbase.cpp.
Referenced by ChangeDVDTrack(), NuppelVideoPlayer::DoPlay(), NuppelVideoPlayer::FastForward(), AvFormatDecoder::GetFrame(), NuppelVideoPlayer::GetFrameFFREW(), and NuppelVideoPlayer::Rewind().
| QStringList DecoderBase::GetTracks | ( | uint | type | ) | const [virtual] |
Definition at line 138 of file decoderbase.h.
Referenced by NuppelVideoPlayer::ChangeCaptionTrack(), AvFormatDecoder::ScanStreams(), and NuppelVideoPlayer::SetCaptionsEnabled().
Reimplemented in AvFormatDecoder.
Definition at line 788 of file decoderbase.cpp.
Referenced by NuppelVideoPlayer::ChangeTrack(), NuppelVideoPlayer::DisableCaptions(), NuppelVideoPlayer::EnableCaptions(), AvFormatDecoder::GetTrackDesc(), GetTracks(), and NuppelVideoPlayer::SetTrack().
| int DecoderBase::SetTrack | ( | uint | type, | |
| int | trackNo | |||
| ) | [virtual] |
Reimplemented in AvFormatDecoder.
Definition at line 810 of file decoderbase.cpp.
Referenced by DecrementTrack(), IncrementTrack(), NuppelVideoPlayer::SetTrack(), and AvFormatDecoder::SetTrack().
| int DecoderBase::GetTrack | ( | uint | type | ) | const [inline] |
| StreamInfo DecoderBase::GetTrackInfo | ( | uint | type, | |
| uint | trackNo | |||
| ) | const |
| int DecoderBase::IncrementTrack | ( | uint | type | ) | [inline] |
| int DecoderBase::DecrementTrack | ( | uint | type | ) | [inline] |
| int DecoderBase::ChangeTrack | ( | uint | type, | |
| int | dir | |||
| ) | [inline] |
Definition at line 254 of file decoderbase.h.
| bool DecoderBase::InsertTrack | ( | uint | type, | |
| const StreamInfo & | info | |||
| ) | [virtual] |
| virtual int DecoderBase::GetTeletextDecoderType | ( | void | ) | const [inline, virtual] |
| virtual void DecoderBase::SetTeletextDecoderViewer | ( | TeletextViewer * | ) | [inline, virtual] |
Reimplemented in AvFormatDecoder.
Definition at line 152 of file decoderbase.h.
Referenced by NuppelVideoPlayer::EnableTeletext(), and NuppelVideoPlayer::StartPlaying().
| virtual QString DecoderBase::GetXDS | ( | const QString & | ) | const [inline, virtual] |
Reimplemented in AvFormatDecoder.
Definition at line 154 of file decoderbase.h.
Referenced by NuppelVideoPlayer::GetXDS().
| virtual bool DecoderBase::SetAudioByComponentTag | ( | int | ) | [inline, virtual] |
Reimplemented in AvFormatDecoder.
Definition at line 157 of file decoderbase.h.
Referenced by NuppelVideoPlayer::SetAudioByComponentTag().
| virtual bool DecoderBase::SetVideoByComponentTag | ( | int | ) | [inline, virtual] |
Reimplemented in AvFormatDecoder.
Definition at line 158 of file decoderbase.h.
Referenced by NuppelVideoPlayer::SetVideoByComponentTag().
| 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
Reimplemented in AvFormatDecoder.
Definition at line 874 of file decoderbase.cpp.
Referenced by AvFormatDecoder::AutoSelectTrack(), and AutoSelectTracks().
| void DecoderBase::AutoSelectTracks | ( | void | ) | [inline, protected] |
Definition at line 262 of file decoderbase.h.
Referenced by AvFormatDecoder::GetFrame(), and AvFormatDecoder::OpenFile().
| void DecoderBase::ResetTracks | ( | void | ) | [inline, protected] |
Definition at line 268 of file decoderbase.h.
Referenced by DecoderBase(), and AvFormatDecoder::ScanStreams().
| void DecoderBase::FileChanged | ( | void | ) | [protected] |
Definition at line 676 of file decoderbase.cpp.
Referenced by NuppelDecoder::GetFrame(), AvFormatDecoder::GetFrame(), and IvtvDecoder::ReadWrite().
| bool DecoderBase::DoRewindSeek | ( | long long | desiredFrame | ) | [protected] |
| void DecoderBase::DoFastForwardSeek | ( | long long | desiredFrame, | |
| bool & | needflush | |||
| ) | [protected] |
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.
| desiredFrame | frame we are attempting to seek to. | |
| needflush | set to true if a seek is made. |
Definition at line 640 of file decoderbase.cpp.
Referenced by DoFastForward().
| long long DecoderBase::GetLastFrameInPosMap | ( | long long | desiredFrame | ) | [protected] |
| long long DecoderBase::GetKey | ( | PosMapEntry & | entry | ) | const [protected] |
Definition at line 464 of file decoderbase.cpp.
Referenced by DoFastForwardSeek(), DoRewindSeek(), and GetLastFrameInPosMap().
NuppelVideoPlayer* DecoderBase::m_parent [protected] |
ProgramInfo* DecoderBase::m_playbackinfo [protected] |
Definition at line 181 of file decoderbase.h.
Referenced by DecoderBase(), IvtvDecoder::OpenFile(), AvFormatDecoder::OpenFile(), PosMapFromDb(), SetPositionMap(), SetProgramInfo(), and ~DecoderBase().
RingBuffer* DecoderBase::ringBuffer [protected] |
Definition at line 183 of file decoderbase.h.
Referenced by AvFormatDecoder::AutoSelectTrack(), ChangeDVDTrack(), DoFastForward(), DoFastForwardSeek(), DoRewind(), DoRewindSeek(), DVDFindPosition(), NuppelDecoder::GetFrame(), AvFormatDecoder::GetFrame(), GetKey(), IvtvDecoder::getRingBuf(), AvFormatDecoder::getRingBuf(), AvFormatDecoder::GetTrackDesc(), AvFormatDecoder::HandleGopStart(), AvFormatDecoder::InitByteContext(), AvFormatDecoder::InitVideoCodec(), IvtvDecoder::MpegPreProcessPkt(), AvFormatDecoder::MpegPreProcessPkt(), NuppelDecoder::OpenFile(), IvtvDecoder::OpenFile(), AvFormatDecoder::OpenFile(), PosMapFromDb(), NuppelDecoder::ReadFileheader(), NuppelDecoder::ReadFrameheader(), IvtvDecoder::ReadWrite(), AvFormatDecoder::Reset(), AvFormatDecoder::ScanStreams(), AvFormatDecoder::SeekReset(), SyncPositionMap(), and UpdateDVDFramesPlayed().
RemoteEncoder* DecoderBase::nvr_enc [protected] |
int DecoderBase::current_width [protected] |
Definition at line 186 of file decoderbase.h.
Referenced by AvFormatDecoder::GetFrame(), AvFormatDecoder::H264PreProcessPkt(), AvFormatDecoder::InitVideoCodec(), and AvFormatDecoder::MpegPreProcessPkt().
int DecoderBase::current_height [protected] |
Definition at line 187 of file decoderbase.h.
Referenced by AvFormatDecoder::H264PreProcessPkt(), AvFormatDecoder::InitVideoCodec(), and AvFormatDecoder::MpegPreProcessPkt().
float DecoderBase::current_aspect [protected] |
Definition at line 188 of file decoderbase.h.
Referenced by NuppelDecoder::GetFrame(), AvFormatDecoder::H264PreProcessPkt(), AvFormatDecoder::InitVideoCodec(), AvFormatDecoder::MpegPreProcessPkt(), and NuppelDecoder::OpenFile().
double DecoderBase::fps [protected] |
Definition at line 189 of file decoderbase.h.
Referenced by AvFormatDecoder::DoFastForward(), DVDFindPosition(), GetFPS(), AvFormatDecoder::GetFrame(), AvFormatDecoder::H264PreProcessPkt(), AvFormatDecoder::HandleGopStart(), AvFormatDecoder::InitVideoCodec(), IvtvDecoder::IvtvDecoder(), IvtvDecoder::MpegPreProcessPkt(), AvFormatDecoder::MpegPreProcessPkt(), normalized_fps(), IvtvDecoder::OpenFile(), AvFormatDecoder::OpenFile(), PosMapFromDb(), AvFormatDecoder::ScanStreams(), SyncPositionMap(), and UpdateDVDFramesPlayed().
uint DecoderBase::bitrate [protected] |
Definition at line 190 of file decoderbase.h.
Referenced by NuppelDecoder::GetFrame(), GetRawBitrate(), AvFormatDecoder::HandleGopStart(), IvtvDecoder::IvtvDecoder(), IvtvDecoder::MpegPreProcessPkt(), NuppelDecoder::OpenFile(), IvtvDecoder::OpenFile(), AvFormatDecoder::OpenFile(), and AvFormatDecoder::ScanStreams().
long long DecoderBase::framesPlayed [protected] |
Definition at line 192 of file decoderbase.h.
Referenced by ChangeDVDTrack(), IvtvDecoder::DoFastForward(), DoFastForward(), AvFormatDecoder::DoFastForward(), DoFastForwardSeek(), DoRewind(), DVDFindPosition(), FileChanged(), AvFormatDecoder::GenerateDummyVideoFrame(), NuppelDecoder::GetFrame(), IvtvDecoder::GetFrame(), AvFormatDecoder::GetFrame(), NuppelDecoder::isLastFrameKey(), NuppelDecoder::NuppelDecoder(), Reset(), AvFormatDecoder::Reset(), IvtvDecoder::SeekReset(), AvFormatDecoder::SeekReset(), UpdateDVDFramesPlayed(), and UpdateFramesPlayed().
long long DecoderBase::framesRead [protected] |
Definition at line 193 of file decoderbase.h.
Referenced by AvFormatDecoder::DoFastForward(), DoFastForwardSeek(), DoRewind(), FileChanged(), NuppelDecoder::GetFrame(), IvtvDecoder::GetFrame(), AvFormatDecoder::GetFrame(), GetFramesRead(), AvFormatDecoder::HandleGopStart(), IvtvDecoder::MpegPreProcessPkt(), IvtvDecoder::ReadWrite(), Reset(), AvFormatDecoder::Reset(), IvtvDecoder::SeekReset(), AvFormatDecoder::SeekReset(), and UpdateDVDFramesPlayed().
long long DecoderBase::lastKey [protected] |
Definition at line 194 of file decoderbase.h.
Referenced by DoFastForward(), AvFormatDecoder::DoFastForward(), DoFastForwardSeek(), DoRewind(), DoRewindSeek(), NuppelDecoder::GetFrame(), AvFormatDecoder::HandleGopStart(), NuppelDecoder::isLastFrameKey(), IvtvDecoder::IvtvDecoder(), IvtvDecoder::MpegPreProcessPkt(), NuppelDecoder::NuppelDecoder(), and AvFormatDecoder::SeekReset().
int DecoderBase::keyframedist [protected] |
Definition at line 195 of file decoderbase.h.
Referenced by IvtvDecoder::DoFastForward(), FindPosition(), NuppelDecoder::GetFrame(), GetKey(), AvFormatDecoder::H264PreProcessPkt(), AvFormatDecoder::HandleGopStart(), AvFormatDecoder::InitVideoCodec(), IvtvDecoder::MpegPreProcessPkt(), AvFormatDecoder::MpegPreProcessPkt(), NuppelDecoder::OpenFile(), IvtvDecoder::OpenFile(), AvFormatDecoder::OpenFile(), PosMapFromDb(), PosMapFromEnc(), and SyncPositionMap().
long long DecoderBase::indexOffset [protected] |
Definition at line 196 of file decoderbase.h.
Referenced by FindPosition(), GetKey(), and PosMapFromDb().
bool DecoderBase::ateof [protected] |
Definition at line 198 of file decoderbase.h.
Referenced by IvtvDecoder::DoFastForward(), DoFastForward(), NuppelDecoder::GetFrame(), IvtvDecoder::GetFrame(), AvFormatDecoder::GetFrame(), IvtvDecoder::ReadWrite(), Reset(), NuppelDecoder::SeekReset(), IvtvDecoder::SeekReset(), AvFormatDecoder::SeekReset(), and IvtvDecoder::StepFrames().
bool DecoderBase::exitafterdecoded [protected] |
Definition at line 199 of file decoderbase.h.
Referenced by DoFastForward(), and AvFormatDecoder::GetFrame().
bool DecoderBase::transcoding [protected] |
Definition at line 200 of file decoderbase.h.
Referenced by AvFormatDecoder::AutoSelectAudioTrack(), AvFormatDecoder::GetFrame(), setTranscoding(), and AvFormatDecoder::SetupAudioStream().
bool DecoderBase::hasFullPositionMap [protected] |
Definition at line 202 of file decoderbase.h.
Referenced by NuppelDecoder::GetFrame(), AvFormatDecoder::HandleGopStart(), IvtvDecoder::MpegPreProcessPkt(), NuppelDecoder::OpenFile(), IvtvDecoder::OpenFile(), and AvFormatDecoder::OpenFile().
bool DecoderBase::recordingHasPositionMap [protected] |
Definition at line 203 of file decoderbase.h.
Referenced by AvFormatDecoder::DoFastForward(), AvFormatDecoder::DoRewind(), AvFormatDecoder::HandleGopStart(), IvtvDecoder::MpegPreProcessPkt(), IvtvDecoder::OpenFile(), AvFormatDecoder::OpenFile(), AvFormatDecoder::SeekReset(), and SyncPositionMap().
bool DecoderBase::posmapStarted [protected] |
Definition at line 204 of file decoderbase.h.
Referenced by AvFormatDecoder::GetFrame(), AvFormatDecoder::Reset(), setWatchingRecording(), and SyncPositionMap().
MarkTypes DecoderBase::positionMapType [protected] |
Definition at line 205 of file decoderbase.h.
Referenced by AvFormatDecoder::HandleGopStart(), IvtvDecoder::MpegPreProcessPkt(), NuppelDecoder::NuppelDecoder(), IvtvDecoder::OpenFile(), AvFormatDecoder::OpenFile(), PosMapFromDb(), PosMapFromEnc(), and SetPositionMap().
QValueVector<PosMapEntry> DecoderBase::m_positionMap [protected] |
Definition at line 207 of file decoderbase.h.
Referenced by DoFastForward(), DoFastForwardSeek(), DoRewind(), DoRewindSeek(), FileChanged(), FindPosition(), NuppelDecoder::GetFrame(), AvFormatDecoder::GetFrame(), GetLastFrameInPosMap(), AvFormatDecoder::HandleGopStart(), IvtvDecoder::MpegPreProcessPkt(), NuppelDecoder::OpenFile(), PosMapFromDb(), PosMapFromEnc(), Reset(), AvFormatDecoder::Reset(), SetPositionMap(), and SyncPositionMap().
bool DecoderBase::dontSyncPositionMap [protected] |
Definition at line 208 of file decoderbase.h.
Referenced by AvFormatDecoder::OpenFile(), and SyncPositionMap().
bool DecoderBase::exactseeks [protected] |
Definition at line 210 of file decoderbase.h.
Referenced by DoFastForward(), DoFastForwardSeek(), DoRewind(), IvtvDecoder::SeekReset(), and setExactSeeks().
bool DecoderBase::livetv [protected] |
Definition at line 211 of file decoderbase.h.
Referenced by AvFormatDecoder::DoFastForward(), AvFormatDecoder::DoRewind(), AvFormatDecoder::HandleGopStart(), IvtvDecoder::MpegPreProcessPkt(), IvtvDecoder::OpenFile(), AvFormatDecoder::OpenFile(), PosMapFromEnc(), AvFormatDecoder::SeekReset(), setLiveTVMode(), and SyncPositionMap().
bool DecoderBase::watchingrecording [protected] |
Definition at line 212 of file decoderbase.h.
Referenced by IvtvDecoder::OpenFile(), AvFormatDecoder::OpenFile(), setWatchingRecording(), and SyncPositionMap().
bool DecoderBase::hasKeyFrameAdjustTable [protected] |
Definition at line 214 of file decoderbase.h.
Referenced by DoFastForwardSeek(), DoRewindSeek(), GetKey(), and NuppelDecoder::OpenFile().
bool DecoderBase::lowbuffers [protected] |
Definition at line 216 of file decoderbase.h.
Referenced by AvFormatDecoder::GetFrame(), and SetLowBuffers().
bool DecoderBase::getrawframes [protected] |
Definition at line 218 of file decoderbase.h.
Referenced by DoFastForward(), AvFormatDecoder::DoFastForward(), NuppelDecoder::GetFrame(), GetRawAudioState(), NuppelDecoder::NuppelDecoder(), and SetRawAudioState().
bool DecoderBase::getrawvideo [protected] |
Definition at line 219 of file decoderbase.h.
Referenced by NuppelDecoder::GetFrame(), GetRawVideoState(), NuppelDecoder::NuppelDecoder(), and SetRawVideoState().
bool DecoderBase::errored [protected] |
Definition at line 221 of file decoderbase.h.
Referenced by IsErrored(), NuppelDecoder::NuppelDecoder(), and AvFormatDecoder::Reset().
bool DecoderBase::waitingForChange [protected] |
Definition at line 223 of file decoderbase.h.
Referenced by FileChanged(), NuppelDecoder::GetFrame(), AvFormatDecoder::GetFrame(), GetWaitForChange(), IvtvDecoder::ReadWrite(), and SetWaitForChange().
long long DecoderBase::readAdjust [protected] |
Definition at line 224 of file decoderbase.h.
Referenced by NuppelDecoder::GetFrame(), AvFormatDecoder::GetFrame(), IvtvDecoder::ReadWrite(), SeekReset(), and SetReadAdjust().
bool DecoderBase::justAfterChange [protected] |
Definition at line 225 of file decoderbase.h.
Referenced by FileChanged(), and AvFormatDecoder::GetFrame().
int DecoderBase::currentTrack[kTrackTypeCount] [protected] |
Definition at line 228 of file decoderbase.h.
Referenced by AvFormatDecoder::AutoSelectAudioTrack(), AutoSelectTrack(), DecrementTrack(), AvFormatDecoder::GetFrame(), GetTrack(), IncrementTrack(), ResetTracks(), SetTrack(), and AvFormatDecoder::SetupAudioStream().
sinfo_vec_t DecoderBase::tracks[kTrackTypeCount] [protected] |
Definition at line 229 of file decoderbase.h.
Referenced by AvFormatDecoder::AutoSelectAudioTrack(), AutoSelectTrack(), DecoderBase(), DecrementTrack(), GetTrackCount(), GetTrackDesc(), AvFormatDecoder::GetTrackDesc(), GetTrackInfo(), GetTrackLanguageIndex(), GetTracks(), IncrementTrack(), InsertTrack(), AvFormatDecoder::ScanATSCCaptionStreams(), AvFormatDecoder::ScanStreams(), AvFormatDecoder::ScanTeletextCaptions(), AvFormatDecoder::SetAudioByComponentTag(), SetTrack(), and AvFormatDecoder::SetupAudioStreamSubIndexes().
StreamInfo DecoderBase::wantedTrack[kTrackTypeCount] [protected] |
Definition at line 230 of file decoderbase.h.
Referenced by AvFormatDecoder::AutoSelectAudioTrack(), AutoSelectTrack(), and SetTrack().
StreamInfo DecoderBase::selectedTrack[(uint) kTrackTypeCount] [protected] |
Definition at line 231 of file decoderbase.h.
Referenced by AvFormatDecoder::AutoSelectAudioTrack(), AutoSelectTrack(), filter_max_ch(), AvFormatDecoder::GetFrame(), AvFormatDecoder::SetDisablePassThrough(), SetTrack(), and AvFormatDecoder::SetupAudioStream().
vector<int> DecoderBase::languagePreference [protected] |
language preferences for auto-selection of streams
Definition at line 233 of file decoderbase.h.
Referenced by AvFormatDecoder::AutoSelectAudioTrack(), and AutoSelectTrack().
1.5.5