MythTV
master
|
#include <mythmediabuffer.h>
Public Member Functions | |
~MythMediaBuffer () override=0 | |
Deletes. More... | |
MythBufferType | GetType () const |
void | SetOldFile (bool Old) |
Tell RingBuffer if this is an old file or not. More... | |
void | UpdateRawBitrate (uint RawBitrate) |
Set the raw bit rate, to allow RingBuffer adjust effective bitrate. More... | |
void | UpdatePlaySpeed (float PlaySpeed) |
Set the play speed, to allow RingBuffer adjust effective bitrate. More... | |
void | EnableBitrateMonitor (bool Enable) |
void | SetBufferSizeFactors (bool EstBitrate, bool Matroska) |
Tells RingBuffer that the raw bitrate may be inaccurate and the underlying container is matroska, both of which may require a larger buffer size. More... | |
void | SetWaitForWrite (void) |
QString | GetSafeFilename (void) |
QString | GetFilename (void) const |
QString | GetSubtitleFilename (void) const |
QString | GetLastError (void) const |
bool | GetCommsError (void) const |
void | ResetCommsError (void) |
bool | GetStopReads (void) const |
QString | GetDecoderRate (void) |
QString | GetStorageRate (void) |
QString | GetAvailableBuffer (void) |
uint | GetBufferSize (void) const |
bool | IsNearEnd (double Framerate, uint Frames) const |
long long | GetWritePosition (void) const |
Returns how far into a ThreadedFileWriter file we have written. More... | |
long long | GetRealFileSize (void) const |
bool | IsDisc (void) const |
bool | IsDVD (void) const |
bool | IsBD (void) const |
const MythDVDBuffer * | DVD (void) const |
MythDVDBuffer * | DVD (void) |
const MythBDBuffer * | BD (void) const |
MythBDBuffer * | BD (void) |
int | Read (void *Buffer, int Count) |
This is the public method for reading from a file, it calls the appropriate read method if the file is remote or buffered, or a BD/DVD. More... | |
int | Peek (void *Buffer, int Count) |
int | Peek (std::vector< char > &Buffer) |
void | Reset (bool Full=false, bool ToAdjust=false, bool ResetInternal=false) |
Resets the read-ahead thread and our position in the file. More... | |
void | Pause (void) |
Pauses the read-ahead thread. Calls StopReads(void). More... | |
void | Unpause (void) |
Unpauses the read-ahead thread. Calls StartReads(void). More... | |
void | WaitForPause (void) |
Waits for Pause(void) to take effect. More... | |
void | Start (void) |
Starts the read-ahead thread. More... | |
void | StopReads (void) |
void | StartReads (void) |
long long | Seek (long long Position, int Whence, bool HasLock=false) |
long long | SetAdjustFilesize (void) |
int | GetReadBufAvail (void) const |
Returns number of bytes available for reading from buffer. More... | |
bool | SetReadInternalMode (bool Mode) |
bool | IsReadInternalMode (void) const |
bool | LiveMode (void) const |
Returns true if this RingBuffer has been assigned a LiveTVChain. More... | |
void | SetLiveMode (LiveTVChain *Chain) |
Assigns a LiveTVChain to this RingBuffer. More... | |
void | IgnoreLiveEOF (bool Ignore) |
Tells RingBuffer whether to ignore the end-of-file. More... | |
int | Write (const void *Buffer, uint Count) |
Writes buffer to ThreadedFileWriter::Write(const void*,uint) More... | |
bool | IsIOBound (void) const |
void | WriterFlush (void) |
Calls ThreadedFileWriter::Flush(void) More... | |
void | Sync (void) |
Calls ThreadedFileWriter::Sync(void) More... | |
long long | WriterSeek (long long Position, int Whence, bool HasLock=false) |
Calls ThreadedFileWriter::Seek(long long,int). More... | |
bool | WriterSetBlocking (bool Lock=true) |
Calls ThreadedFileWriter::SetBlocking(bool) More... | |
virtual long long | GetReadPosition (void) const =0 |
virtual bool | IsOpen (void) const =0 |
virtual bool | IsStreamed (void) |
virtual bool | IsSeekingAllowed (void) |
virtual bool | IsBookmarkAllowed (void) |
virtual int | BestBufferSize (void) |
virtual bool | StartFromBeginning (void) |
virtual void | IgnoreWaitStates (bool) |
virtual bool | IsInMenu (void) const |
virtual bool | IsInStillFrame (void) const |
virtual bool | IsInDiscMenuOrStillFrame (void) const |
virtual bool | HandleAction (const QStringList &, mpeg::chrono::pts) |
virtual bool | OpenFile (const QString &Filename, std::chrono::milliseconds Retry=kDefaultOpenTimeout)=0 |
virtual bool | ReOpen (const QString &="") |
Static Public Member Functions | |
static MythMediaBuffer * | Create (const QString &Filename, bool Write, bool UseReadAhead=true, std::chrono::milliseconds Timeout=kDefaultOpenTimeout, bool StreamOnly=false) |
Creates a RingBuffer instance. More... | |
static QString | BitrateToString (uint64_t Rate, bool Hz=false) |
static void | AVFormatInitNetwork (void) |
Static Public Attributes | |
static constexpr std::chrono::milliseconds | kDefaultOpenTimeout { 2s } |
static constexpr std::chrono::milliseconds | kLiveTVOpenTimeout { 10s } |
Protected Member Functions | |
MythMediaBuffer (MythBufferType Type) | |
void | run (void) override |
Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead. More... | |
void | CreateReadAheadBuffer (void) |
void | CalcReadAheadThresh (void) |
Calculates m_fillMin, m_fillThreshold, and m_readBlockSize from the estimated effective bitrate of the stream. More... | |
bool | PauseAndWait (void) |
int | ReadPriv (void *Buffer, int Count, bool Peek) |
When possible reads from the read-ahead buffer, otherwise reads directly from the device. More... | |
int | ReadDirect (void *Buffer, int Count, bool Peek) |
bool | WaitForReadsAllowed (void) |
int | WaitForAvail (int Count, std::chrono::milliseconds Timeout) |
int | ReadBufFree (void) const |
Returns number of bytes available for reading into buffer. More... | |
int | ReadBufAvail (void) const |
Returns number of bytes available for reading from buffer. More... | |
void | ResetReadAhead (long long NewInternal) |
Restart the read-ahead thread at the 'newinternal' position. More... | |
void | KillReadAheadThread (void) |
Stops the read-ahead thread, and waits for it to stop. More... | |
uint64_t | UpdateDecoderRate (uint64_t Latest=0) |
uint64_t | UpdateStorageRate (uint64_t Latest=0) |
virtual int | SafeRead (void *Buffer, uint Size)=0 |
virtual long long | GetRealFileSizeInternal (void) const |
virtual long long | SeekInternal (long long Position, int Whence)=0 |
![]() | |
int | exec (void) |
Enters the qt event loop. call exit or quit to exit thread. More... | |
MThread (const QString &objectName) | |
Standard constructor. More... | |
MThread (const QString &objectName, QRunnable *runnable) | |
Use this constructor if you want the default run() method to run the QRunnable's run() method instead of entering the Qt event loop. More... | |
virtual | ~MThread () |
MThread (const MThread &)=delete | |
MThread & | operator= (const MThread &)=delete |
void | RunProlog (void) |
Sets up a thread, call this if you reimplement run(). More... | |
void | RunEpilog (void) |
Cleans up a thread's resources, call this if you reimplement run(). More... | |
QThread * | qthread (void) |
Returns the thread, this will always return the same pointer no matter how often you restart the thread. More... | |
void | setObjectName (const QString &name) |
QString | objectName (void) const |
void | setPriority (QThread::Priority priority) |
QThread::Priority | priority (void) const |
bool | isFinished (void) const |
bool | isRunning (void) const |
void | setStackSize (uint stackSize) |
uint | stackSize (void) const |
void | exit (int retcode=0) |
Use this to exit from the thread if you are using a Qt event loop. More... | |
void | start (QThread::Priority p=QThread::InheritPriority) |
Tell MThread to start running the thread in the near future. More... | |
void | terminate (void) |
Kill a thread unsafely. More... | |
void | quit (void) |
calls exit(0) More... | |
bool | wait (std::chrono::milliseconds time=std::chrono::milliseconds::max()) |
Wait for the MThread to exit, with a maximum timeout. More... | |
Private Attributes | |
bool | m_bitrateInitialized { false } |
Friends | |
class | MythInteractiveBuffer |
Additional Inherited Members | |
![]() | |
static void | setTerminationEnabled (bool enabled=true) |
static void | usleep (std::chrono::microseconds time) |
template<typename R , typename P > | |
static std::enable_if_t< std::chrono::treat_as_floating_point< R >::value, void > | usleep (std::chrono::duration< R, P > time) |
static void | ThreadSetup (const QString &name) |
This is to be called on startup in those few threads that haven't been ported to MThread. More... | |
static void | ThreadCleanup (void) |
This is to be called on exit in those few threads that haven't been ported to MThread. More... | |
static void | Cleanup (void) |
This will print out all the running threads, call exit(1) on each and then wait up to 5 seconds total for all the threads to exit. More... | |
static void | GetAllThreadNames (QStringList &list) |
static void | GetAllRunningThreadNames (QStringList &list) |
Definition at line 50 of file mythmediabuffer.h.
|
overridepure virtual |
Deletes.
Definition at line 218 of file mythmediabuffer.cpp.
|
explicitprotected |
Definition at line 197 of file mythmediabuffer.cpp.
|
static |
Creates a RingBuffer instance.
You can explicitly disable the readahead thread by setting readahead to false or by just not calling Start(void).
Filename | Name of file to read or write. |
Write | If true an encapsulated writer is created |
UseReadAhead | If false a call to Start(void) will not a pre-buffering thread, otherwise Start(void) will start a pre-buffering thread. |
Timeout | if < 0, then we will not open the file. Otherwise it's how long to try opening the file after the first failure in milliseconds before giving up. |
StreamOnly | If true disallow DVD and Bluray (used by FileTransfer) |
Definition at line 98 of file mythmediabuffer.cpp.
Referenced by CopyFile(), FlagCommercials(), TVRec::GetProgramRingBufferForLiveTV(), PreviewGenerator::GetScreenGrab(), TV::HandleStateChange(), NuppelVideoRecorder::Initialize(), MythFileOpen(), MythAVFormatWriter::OpenFile(), pid_counter(), pid_filter(), pid_printer(), RebuildSeekTable(), ImportRecorder::run(), RunCCExtract(), TV::SwitchInputs(), TVRec::SwitchRecordingRingBuffer(), VideoPerformanceTest::Test(), Transcode::TranscodeFile(), and TVRec::TuningNewRecorder().
MythBufferType MythMediaBuffer::GetType | ( | ) | const |
Definition at line 203 of file mythmediabuffer.cpp.
Referenced by MythPlayerUI::JumpToProgram(), MythPlayerUI::JumpToStream(), MythPlayerCaptionsUI::SetStream(), and MythPlayerUI::SwitchToProgram().
Definition at line 1501 of file mythmediabuffer.cpp.
Referenced by GetDecoderRate(), MythPlayerUI::GetPlaybackData(), and GetStorageRate().
|
static |
Definition at line 1861 of file mythmediabuffer.cpp.
Referenced by MythStreamingBuffer::OpenFile(), and HLSRingBuffer::TestForHTTPLiveStreaming().
void MythMediaBuffer::SetOldFile | ( | bool | Old | ) |
Tell RingBuffer if this is an old file or not.
Normally the RingBuffer determines that the file is old if it has not been modified in the last minute. This allows one to override that determination externally.
If for instance you are slowly writing to the file you could call this with the value of false. If you just finished writing the file you could call it with the value true. Knowing that the file is old allows MythTV to determine that a read at the end of the file is really an end-of-file condition more quickly. But if the file is growing it can also cause the RingBuffer to report an end-of-file condition prematurely.
Definition at line 1732 of file mythmediabuffer.cpp.
Referenced by FileTransfer::SetTimeout(), and BEFileTransfer::SetTimeout().
void MythMediaBuffer::UpdateRawBitrate | ( | uint | RawBitrate | ) |
Set the raw bit rate, to allow RingBuffer adjust effective bitrate.
RawBitrate | Streams average number of kilobits per second when playspeed is 1.0 |
Definition at line 278 of file mythmediabuffer.cpp.
Referenced by MythPlayerUI::JumpToProgram(), MythPlayerUI::JumpToStream(), AvFormatDecoder::ScanStreams(), and MythPlayerUI::SwitchToProgram().
void MythMediaBuffer::UpdatePlaySpeed | ( | float | PlaySpeed | ) |
Set the play speed, to allow RingBuffer adjust effective bitrate.
play_speed | Speed to set. (1.0 for normal speed) |
Definition at line 306 of file mythmediabuffer.cpp.
void MythMediaBuffer::EnableBitrateMonitor | ( | bool | Enable | ) |
Definition at line 314 of file mythmediabuffer.cpp.
Referenced by MythPlayerUI::EnableBitrateMonitor().
Tells RingBuffer that the raw bitrate may be inaccurate and the underlying container is matroska, both of which may require a larger buffer size.
Definition at line 329 of file mythmediabuffer.cpp.
Referenced by AvFormatDecoder::ScanStreams().
void MythMediaBuffer::SetWaitForWrite | ( | void | ) |
Definition at line 319 of file mythmediabuffer.cpp.
Referenced by RunCCExtract().
QString MythMediaBuffer::GetSafeFilename | ( | void | ) |
Definition at line 1748 of file mythmediabuffer.cpp.
Referenced by MythPlayerUI::GetPlaybackData(), MythPreviewPlayer::GetScreenGrabAtFrame(), and MythPlayer::OpenFile().
QString MythMediaBuffer::GetFilename | ( | void | ) | const |
Definition at line 1740 of file mythmediabuffer.cpp.
Referenced by MythBDPlayer::CreateDecoder(), MythDVDPlayer::CreateDecoder(), MythPlayer::CreateDecoder(), TV::customEvent(), FileTransfer::GetFileName(), BEFileTransfer::GetFileName(), AvFormatDecoder::OpenFile(), MythPlayer::OpenFile(), TV::ProcessNetworkControlCommand(), SatIPRecorder::run(), HDHRRecorder::run(), DVBRecorder::run(), ImportRecorder::run(), ASIRecorder::run(), NuppelVideoRecorder::run(), SatIPRecorder::StartNewFile(), HDHRRecorder::StartNewFile(), DVBRecorder::StartNewFile(), and ASIRecorder::StartNewFile().
QString MythMediaBuffer::GetSubtitleFilename | ( | void | ) | const |
Definition at line 1753 of file mythmediabuffer.cpp.
Referenced by MythPlayerCaptionsUI::LoadExternalSubtitles().
QString MythMediaBuffer::GetLastError | ( | void | ) | const |
Definition at line 1761 of file mythmediabuffer.cpp.
Referenced by TV::HandleStateChange(), MythAVFormatWriter::OpenFile(), and Transcode::TranscodeFile().
bool MythMediaBuffer::GetCommsError | ( | void | ) | const |
Definition at line 1769 of file mythmediabuffer.cpp.
Referenced by MythPlayerUI::EventLoop().
void MythMediaBuffer::ResetCommsError | ( | void | ) |
Definition at line 1774 of file mythmediabuffer.cpp.
Referenced by MythPlayerUI::EventLoop().
bool MythMediaBuffer::GetStopReads | ( | void | ) | const |
Definition at line 1779 of file mythmediabuffer.cpp.
Referenced by MythPlayer::OpenFile(), FileTransfer::RequestBlock(), and BEFileTransfer::RequestBlock().
QString MythMediaBuffer::GetDecoderRate | ( | void | ) |
Definition at line 1534 of file mythmediabuffer.cpp.
Referenced by MythPlayerUI::GetPlaybackData().
QString MythMediaBuffer::GetStorageRate | ( | void | ) |
Definition at line 1539 of file mythmediabuffer.cpp.
Referenced by MythPlayerUI::GetPlaybackData().
QString MythMediaBuffer::GetAvailableBuffer | ( | void | ) |
Definition at line 1544 of file mythmediabuffer.cpp.
Referenced by MythPlayerUI::GetPlaybackData().
uint MythMediaBuffer::GetBufferSize | ( | void | ) | const |
Definition at line 1554 of file mythmediabuffer.cpp.
Referenced by MythPlayerUI::GetPlaybackData().
Definition at line 406 of file mythmediabuffer.cpp.
Referenced by MythPlayer::IsReallyNearEnd().
long long MythMediaBuffer::GetWritePosition | ( | void | ) | const |
Returns how far into a ThreadedFileWriter file we have written.
Definition at line 1787 of file mythmediabuffer.cpp.
Referenced by DTVRecorder::FindH2645Keyframes(), DTVRecorder::FindMPEG2Keyframes(), TVRec::GetFilePosition(), DTVRecorder::HandleKeyframe(), RecorderBase::SavePositionMap(), NuppelVideoRecorder::UpdateSeekTable(), NuppelVideoRecorder::WriteHeader(), NuppelVideoRecorder::WriteKeyFrameAdjustTable(), and NuppelVideoRecorder::WriteSeekTable().
long long MythMediaBuffer::GetRealFileSize | ( | void | ) | const |
Definition at line 462 of file mythmediabuffer.cpp.
Referenced by CopyFile(), RecorderBase::FinishRecording(), FileTransfer::GetFileSize(), BEFileTransfer::GetFileSize(), AvFormatDecoder::HandleGopStart(), MythPlayerUI::JumpToStream(), AvFormatDecoder::OpenFile(), ImportRecorder::run(), MythAVFormatBuffer::Seek(), RecorderBase::SetNextRecording(), and ImportRecorder::UpdateRecSize().
bool MythMediaBuffer::IsDisc | ( | void | ) | const |
Definition at line 1826 of file mythmediabuffer.cpp.
Referenced by DecoderBase::DoRewind(), DecoderBase::GetKey(), AvFormatDecoder::OpenFile(), DecoderBase::PosMapFromDb(), and DecoderBase::PosMapFromEnc().
bool MythMediaBuffer::IsDVD | ( | void | ) | const |
Definition at line 1831 of file mythmediabuffer.cpp.
Referenced by MythDVDPlayer::CalcMaxFFTime(), MythDVDPlayer::ChangeSpeed(), MythDVDPlayer::DisableCaptions(), MythDVDPlayer::DisplayDVDButton(), MythDVDPlayer::DisplayPauseFrame(), DecoderBase::DoFastForward(), MythDVDDecoder::DoFastForwardSeek(), MythDVDPlayer::DoJumpChapter(), MythDVDDecoder::DoRewindSeek(), MythDVDDecoder::DVDFindPosition(), MythDVDPlayer::EnableCaptions(), MythDVDDecoder::GetAudioLanguage(), MythDVDPlayer::GetBookmark(), MythDVDPlayer::GetChapterTimes(), MythDVDPlayer::GetCurrentChapter(), MythDVDPlayer::GetMillisecondsPlayed(), MythDVDPlayer::GetNumChapters(), MythPreviewPlayer::GetScreenGrabAtFrame(), AvFormatDecoder::GetTrackDesc(), MythDVDPlayer::GoToMenu(), TV::HandleLCDTimerEvent(), TV::HandleStateChange(), AvFormatDecoder::InitVideoCodec(), IsDisc(), AvFormatDecoder::MpegPreProcessPkt(), AvFormatDecoder::OpenFile(), TV::OSDDialogEvent(), DecoderBase::PosMapFromDb(), MythDVDDecoder::PostProcessTracks(), MythDVDPlayer::PrepareAudioSample(), TV::ProcessKeypressOrGesture(), TV::ProcessNetworkControlCommand(), AvFormatDecoder::ProcessSubtitlePacket(), AvFormatDecoder::ProcessVideoFrame(), AvFormatDecoder::ProcessVideoPacket(), ReadDirect(), AvFormatDecoder::ScanStreams(), MythDVDPlayer::SetBookmark(), TV::ShowLCDDVDInfo(), TV::ShowOSDStopWatchingRecording(), MythDVDPlayer::StillFrameCheck(), MythDVDDecoder::StreamChangeCheck(), DecoderBase::SyncPositionMap(), MythDVDDecoder::UpdateFramesPlayed(), MythDVDPlayer::VideoLoop(), and TV::VolumeChange().
bool MythMediaBuffer::IsBD | ( | void | ) | const |
Definition at line 1836 of file mythmediabuffer.cpp.
Referenced by MythBDDecoder::BDFindPosition(), MythBDPlayer::DisplayMenu(), MythBDPlayer::DisplayPauseFrame(), MythBDDecoder::DoFastForwardSeek(), MythBDDecoder::DoRewindSeek(), MythBDDecoder::GetAudioLanguage(), MythBDPlayer::GetBookmark(), MythPreviewPlayer::GetScreenGrabAtFrame(), MythBDDecoder::GetSubtitleLanguage(), IsDisc(), MythBDDecoder::IsValidStream(), TV::PlaybackMenuInit(), DecoderBase::PosMapFromDb(), ReadDirect(), MythBDDecoder::StreamChangeCheck(), DecoderBase::SyncPositionMap(), MythBDDecoder::UpdateFramesPlayed(), and MythBDPlayer::VideoLoop().
const MythDVDBuffer * MythMediaBuffer::DVD | ( | void | ) | const |
Definition at line 1841 of file mythmediabuffer.cpp.
Referenced by TV::ActiveHandleAction(), MythDVDPlayer::CalcMaxFFTime(), MythDVDPlayer::ChangeSpeed(), MythDVDDecoder::CheckContext(), MythDVDPlayer::DisableCaptions(), MythDVDPlayer::DisplayDVDButton(), MythDVDPlayer::DisplayPauseFrame(), DecoderBase::DoFastForward(), MythDVDPlayer::DoJumpChapter(), MythDVDDecoder::DVDFindPosition(), MythDVDPlayer::EnableCaptions(), MythDVDPlayer::EventEnd(), MythDVDPlayer::EventStart(), MythDVDDecoder::GetAudioLanguage(), MythDVDDecoder::GetAudioTrackType(), MythDVDPlayer::GetBookmark(), MythDVDPlayer::GetChapterTimes(), MythDVDPlayer::GetCurrentAngle(), MythDVDPlayer::GetCurrentChapter(), MythDVDPlayer::GetMillisecondsPlayed(), MythDVDPlayer::GetNumAngles(), MythDVDPlayer::GetNumChapters(), MythDVDPlayer::GoToDVDProgram(), MythDVDPlayer::GoToMenu(), MythDVDPlayer::InitialSeek(), AvFormatDecoder::MpegPreProcessPkt(), DecoderBase::PosMapFromDb(), MythDVDDecoder::PostProcessTracks(), MythDVDPlayer::PrepareAudioSample(), MythDVDDecoder::ProcessDataPacket(), AvFormatDecoder::ProcessSubtitlePacket(), MythDVDDecoder::ProcessVideoPacket(), MythDVDDecoder::ReadPacket(), AvFormatDecoder::ScanStreams(), MythDVDPlayer::SetBookmark(), MythDVDPlayer::SetTrack(), TV::ShowLCDDVDInfo(), MythDVDPlayer::StillFrameCheck(), MythDVDDecoder::StreamChangeCheck(), MythDVDPlayer::SwitchAngle(), DecoderBase::SyncPositionMap(), MythDVDDecoder::UpdateFramesPlayed(), MythDVDPlayer::VideoLoop(), and MythDVDPlayer::VideoStart().
MythDVDBuffer * MythMediaBuffer::DVD | ( | void | ) |
Definition at line 1851 of file mythmediabuffer.cpp.
const MythBDBuffer * MythMediaBuffer::BD | ( | void | ) | const |
Definition at line 1846 of file mythmediabuffer.cpp.
Referenced by MythBDDecoder::BDFindPosition(), MythBDPlayer::DisplayMenu(), MythBDPlayer::DisplayPauseFrame(), MythBDPlayer::EventStart(), MythBDDecoder::GetAudioLanguage(), MythBDPlayer::GetBookmark(), MythBDPlayer::GetChapter(), MythBDPlayer::GetChapterTimes(), MythBDPlayer::GetCurrentAngle(), MythBDPlayer::GetCurrentChapter(), MythBDPlayer::GetCurrentTitle(), MythBDPlayer::GetNumAngles(), MythBDPlayer::GetNumChapters(), MythBDPlayer::GetNumTitles(), MythBDDecoder::GetSubtitleLanguage(), MythBDPlayer::GetTitleDuration(), MythBDPlayer::GoToMenu(), MythBDDecoder::IsValidStream(), MythBDPlayer::NextTitle(), TV::PlaybackMenuInit(), DecoderBase::PosMapFromDb(), MythBDPlayer::PrevTitle(), MythBDDecoder::ReadPacket(), MythBDPlayer::SetBookmark(), MythBDDecoder::StreamChangeCheck(), MythBDPlayer::SwitchAngle(), MythBDPlayer::SwitchTitle(), DecoderBase::SyncPositionMap(), MythBDDecoder::UpdateFramesPlayed(), MythBDPlayer::VideoLoop(), and MythBDPlayer::VideoStart().
MythBDBuffer * MythMediaBuffer::BD | ( | void | ) |
Definition at line 1856 of file mythmediabuffer.cpp.
int MythMediaBuffer::Read | ( | void * | Buffer, |
int | Count | ||
) |
This is the public method for reading from a file, it calls the appropriate read method if the file is remote or buffered, or a BD/DVD.
buf | Pointer to where data will be written |
count | Number of bytes to read |
Definition at line 1487 of file mythmediabuffer.cpp.
Referenced by CopyFile(), pid_counter(), pid_filter(), pid_printer(), MythAVFormatBuffer::Read(), FileTransfer::RequestBlock(), and BEFileTransfer::RequestBlock().
int MythMediaBuffer::Peek | ( | void * | Buffer, |
int | Count | ||
) |
Definition at line 1165 of file mythmediabuffer.cpp.
Referenced by MythPlayer::OpenFile(), Peek(), ReadDirect(), and ReadPriv().
int MythMediaBuffer::Peek | ( | std::vector< char > & | Buffer | ) |
Definition at line 1176 of file mythmediabuffer.cpp.
void MythMediaBuffer::Reset | ( | bool | Full = false , |
bool | ToAdjust = false , |
||
bool | ResetInternal = false |
||
) |
Resets the read-ahead thread and our position in the file.
Definition at line 237 of file mythmediabuffer.cpp.
Referenced by MythPlayerUI::FileChanged(), MythPlayerUI::JumpToProgram(), MythInteractiveBuffer::OpenFile(), and MythPlayerUI::SwitchToProgram().
void MythMediaBuffer::Pause | ( | void | ) |
Pauses the read-ahead thread. Calls StopReads(void).
Definition at line 684 of file mythmediabuffer.cpp.
Referenced by MythInteractiveBuffer::OpenFile(), MythPlayer::PauseBuffer(), TV::StopStuff(), and TV::SwitchInputs().
void MythMediaBuffer::Unpause | ( | void | ) |
Unpauses the read-ahead thread. Calls StartReads(void).
Definition at line 698 of file mythmediabuffer.cpp.
Referenced by MythPlayerUI::SwitchToProgram(), MythInteractiveBuffer::TakeBuffer(), and MythPlayer::UnpauseBuffer().
void MythMediaBuffer::WaitForPause | ( | void | ) |
Waits for Pause(void) to take effect.
Definition at line 712 of file mythmediabuffer.cpp.
Referenced by TV::DoTogglePauseFinish(), MythPlayer::PauseBuffer(), TV::StopStuff(), and TV::SwitchInputs().
void MythMediaBuffer::Start | ( | void | ) |
Starts the read-ahead thread.
If the RingBuffer constructor was not called with a usereadahead of true of if this was reset to false because we're dealing with a DVD the read ahead thread will not be started.
If this RingBuffer is in write-mode a warning will be printed and the read ahead thread will not be started.
If the read ahead thread is already running a warning will be printed and the read ahead thread will not be started.
Definition at line 611 of file mythmediabuffer.cpp.
Referenced by BEFileTransfer::BEFileTransfer(), MythFileOpen(), MythPlayer::OpenFile(), and MythDVDStream::SafeRead().
void MythMediaBuffer::StopReads | ( | void | ) |
Definition at line 663 of file mythmediabuffer.cpp.
Referenced by KillReadAheadThread(), FileTransfer::Pause(), BEFileTransfer::Pause(), Pause(), TV::PauseLiveTV(), MythBDBuffer::SafeRead(), MythFileBuffer::SeekInternal(), FileTransfer::Stop(), BEFileTransfer::Stop(), TV::StopStuff(), TV::SwitchInputs(), and TVRec::TeardownRecorder().
void MythMediaBuffer::StartReads | ( | void | ) |
Definition at line 673 of file mythmediabuffer.cpp.
Referenced by TV::PauseLiveTV(), MythFileBuffer::SeekInternal(), Start(), FileTransfer::Unpause(), BEFileTransfer::Unpause(), and Unpause().
Definition at line 473 of file mythmediabuffer.cpp.
Referenced by MythBDDecoder::DoFastForwardSeek(), MythDVDDecoder::DoFastForwardSeek(), DecoderBase::DoFastForwardSeek(), MythBDDecoder::DoRewindSeek(), MythDVDDecoder::DoRewindSeek(), DecoderBase::DoRewindSeek(), ReadDirect(), FileTransfer::Seek(), and BEFileTransfer::Seek().
long long MythMediaBuffer::SetAdjustFilesize | ( | void | ) |
Definition at line 1153 of file mythmediabuffer.cpp.
Referenced by MythPlayerUI::SwitchToProgram().
int MythMediaBuffer::GetReadBufAvail | ( | void | ) | const |
Returns number of bytes available for reading from buffer.
Definition at line 456 of file mythmediabuffer.cpp.
Referenced by AvFormatDecoder::InitByteContext().
Definition at line 517 of file mythmediabuffer.cpp.
Referenced by MythAVFormatBuffer::SetInInit().
bool MythMediaBuffer::IsReadInternalMode | ( | void | ) | const |
Definition at line 542 of file mythmediabuffer.cpp.
bool MythMediaBuffer::LiveMode | ( | void | ) | const |
Returns true if this RingBuffer has been assigned a LiveTVChain.
Definition at line 1799 of file mythmediabuffer.cpp.
Referenced by NuppelVideoRecorder::Initialize(), IsStreamed(), and MythPlayer::OpenFile().
void MythMediaBuffer::SetLiveMode | ( | LiveTVChain * | Chain | ) |
Assigns a LiveTVChain to this RingBuffer.
Definition at line 1811 of file mythmediabuffer.cpp.
Referenced by TV::HandleStateChange(), and TV::SwitchInputs().
void MythMediaBuffer::IgnoreLiveEOF | ( | bool | Ignore | ) |
Tells RingBuffer whether to ignore the end-of-file.
Definition at line 1819 of file mythmediabuffer.cpp.
Referenced by MythPlayerUI::JumpToProgram(), TV::PauseLiveTV(), TV::SwitchInputs(), and TV::UnpauseLiveTV().
int MythMediaBuffer::Write | ( | const void * | Buffer, |
uint | Count | ||
) |
Writes buffer to ThreadedFileWriter::Write(const void*,uint)
Definition at line 1625 of file mythmediabuffer.cpp.
Referenced by DTVRecorder::BufferedWrite(), CopyFile(), Create(), DTVRecorder::FindPSKeyFrames(), MythFileBuffer::MythFileBuffer(), PrintOutput::Output(), pid_filter(), DTVRecorder::ProcessAudioTSPacket(), DTVRecorder::ProcessVideoTSPacket(), MythAVFormatBuffer::Write(), NuppelVideoRecorder::WriteAudio(), FileTransfer::WriteBlock(), BEFileTransfer::WriteBlock(), NuppelVideoRecorder::WriteFileHeader(), NuppelVideoRecorder::WriteFrameheader(), NuppelVideoRecorder::WriteHeader(), NuppelVideoRecorder::WriteKeyFrameAdjustTable(), NuppelVideoRecorder::WriteSeekTable(), NuppelVideoRecorder::WriteText(), and NuppelVideoRecorder::WriteVideo().
bool MythMediaBuffer::IsIOBound | ( | void | ) | const |
void MythMediaBuffer::WriterFlush | ( | void | ) |
Calls ThreadedFileWriter::Flush(void)
Definition at line 1698 of file mythmediabuffer.cpp.
Referenced by DTVRecorder::FinishRecording(), NuppelVideoRecorder::FinishRecording(), RecorderBase::SetNextRecording(), FileTransfer::Stop(), and BEFileTransfer::Stop().
void MythMediaBuffer::Sync | ( | void | ) |
Calls ThreadedFileWriter::Sync(void)
Definition at line 1662 of file mythmediabuffer.cpp.
Calls ThreadedFileWriter::Seek(long long,int).
Definition at line 1672 of file mythmediabuffer.cpp.
Referenced by MythFileBuffer::SeekInternal(), NuppelVideoRecorder::WriteKeyFrameAdjustTable(), and NuppelVideoRecorder::WriteSeekTable().
Calls ThreadedFileWriter::SetBlocking(bool)
Definition at line 1709 of file mythmediabuffer.cpp.
Referenced by CopyFile(), FileTransfer::FileTransfer(), and pid_printer().
|
pure virtual |
Implemented in MythDVDBuffer, HLSRingBuffer, MythBDBuffer, MythDVDStream, MythStreamingBuffer, MythFileBuffer, and MythInteractiveBuffer.
Referenced by FileTransfer::Seek(), BEFileTransfer::Seek(), and AvFormatDecoder::SeekReset().
|
pure virtual |
Implemented in HLSRingBuffer, MythDVDBuffer, MythBDBuffer, MythDVDStream, MythStreamingBuffer, MythFileBuffer, and MythInteractiveBuffer.
Referenced by BEFileTransfer::BEFileTransfer(), CopyFile(), NuppelVideoRecorder::CreateNuppelFile(), PreviewGenerator::GetScreenGrab(), TV::HandleStateChange(), NuppelVideoRecorder::Initialize(), FileTransfer::isOpen(), BEFileTransfer::isOpen(), MythPlayerUI::JumpToProgram(), MythPlayerUI::JumpToStream(), run(), TVRec::SwitchRecordingRingBuffer(), MythPlayerUI::SwitchToProgram(), and TVRec::TuningNewRecorder().
|
inlinevirtual |
Reimplemented in HLSRingBuffer, MythStreamingBuffer, MythInteractiveBuffer, and MythOpticalBuffer.
Definition at line 125 of file mythmediabuffer.h.
Referenced by AvFormatDecoder::InitByteContext(), and AvFormatDecoder::OpenFile().
|
inlinevirtual |
Reimplemented in HLSRingBuffer, MythDVDBuffer, MythStreamingBuffer, and MythInteractiveBuffer.
Definition at line 126 of file mythmediabuffer.h.
Referenced by MythPlayer::DoFastForward(), TV::DoPlayerSeek(), TV::DoPlayerSeekToFrame(), MythPlayer::DoRewind(), TV::PlaybackMenuInit(), and TV::SetFFRew().
|
inlinevirtual |
Reimplemented in HLSRingBuffer, MythDVDBuffer, MythStreamingBuffer, and MythInteractiveBuffer.
Definition at line 127 of file mythmediabuffer.h.
Referenced by MythPlayer::GetBookmark(), TV::IsBookmarkAllowed(), MythBDPlayer::SetBookmark(), and MythDVDPlayer::SetBookmark().
|
inlinevirtual |
Reimplemented in MythDVDBuffer.
Definition at line 128 of file mythmediabuffer.h.
Referenced by AvFormatDecoder::InitByteContext().
|
inlinevirtual |
Reimplemented in MythDVDBuffer, and MythBDBuffer.
Definition at line 129 of file mythmediabuffer.h.
Referenced by AvFormatDecoder::OpenFile().
|
inlinevirtual |
Reimplemented in MythDVDBuffer, and MythBDBuffer.
Definition at line 130 of file mythmediabuffer.h.
Referenced by MythDVDPlayer::InitialSeek(), AvFormatDecoder::OpenFile(), and TV::StopStuff().
|
inlinevirtual |
Reimplemented in MythOpticalBuffer.
Definition at line 131 of file mythmediabuffer.h.
Referenced by IsInDiscMenuOrStillFrame(), MythBDPlayer::SetBookmark(), and MythDVDPlayer::SetBookmark().
|
inlinevirtual |
Reimplemented in MythDVDBuffer, and MythBDBuffer.
Definition at line 132 of file mythmediabuffer.h.
Referenced by AvFormatDecoder::GetFrame(), IsInDiscMenuOrStillFrame(), and AvFormatDecoder::ProcessAudioPacket().
|
inlinevirtual |
Definition at line 133 of file mythmediabuffer.h.
Referenced by AvFormatDecoder::AutoSelectTrack(), DecoderBase::DoFastForward(), MythDVDPlayer::DoJumpChapter(), TV::DoTogglePauseFinish(), TV::DoTogglePauseStart(), TV::DVDJumpBack(), TV::HandleLCDTimerEvent(), TV::OSDDialogEvent(), MythDVDPlayer::PrepareAudioSample(), TV::ProcessKeypressOrGesture(), TV::ProcessNetworkControlCommand(), and MythDVDPlayer::ReleaseNextVideoFrame().
|
inlinevirtual |
Reimplemented in MythDVDBuffer, and MythBDBuffer.
Definition at line 134 of file mythmediabuffer.h.
Referenced by TV::DiscMenuHandleAction().
|
pure virtual |
Implemented in MythInteractiveBuffer, HLSRingBuffer, MythDVDBuffer, MythBDBuffer, MythStreamingBuffer, MythFileBuffer, and MythDVDStream.
Referenced by MythPlayerUI::JumpToProgram(), MythPlayerUI::JumpToStream(), and MythPlayerUI::SwitchToProgram().
|
inlinevirtual |
Reimplemented in MythFileBuffer.
Definition at line 136 of file mythmediabuffer.h.
Referenced by FileTransfer::ReOpen(), BEFileTransfer::ReOpen(), and MythAVFormatWriter::ReOpen().
|
overrideprotectedvirtual |
Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead.
Reimplemented from MThread.
Definition at line 819 of file mythmediabuffer.cpp.
|
protected |
Definition at line 771 of file mythmediabuffer.cpp.
Referenced by run(), and SetBufferSizeFactors().
|
protected |
Calculates m_fillMin, m_fillThreshold, and m_readBlockSize from the estimated effective bitrate of the stream.
Definition at line 345 of file mythmediabuffer.cpp.
Referenced by CreateReadAheadBuffer(), MythInteractiveBuffer::OpenFile(), MythFileBuffer::OpenFile(), MythBDBuffer::OpenFile(), MythDVDBuffer::OpenFile(), ResetReadAhead(), run(), UpdatePlaySpeed(), and UpdateRawBitrate().
|
protected |
Definition at line 728 of file mythmediabuffer.cpp.
Referenced by run().
|
protected |
When possible reads from the read-ahead buffer, otherwise reads directly from the device.
Buffer | Pointer to where data will be written |
Count | Number of bytes to read |
Peek | If true, don't increment read count |
Definition at line 1321 of file mythmediabuffer.cpp.
|
protected |
Definition at line 1246 of file mythmediabuffer.cpp.
Referenced by ReadPriv().
|
protected |
Definition at line 1181 of file mythmediabuffer.cpp.
Referenced by ReadPriv().
|
protected |
Definition at line 1210 of file mythmediabuffer.cpp.
Referenced by ReadPriv().
|
protected |
Returns number of bytes available for reading into buffer.
Definition at line 445 of file mythmediabuffer.cpp.
Referenced by run().
|
protected |
Returns number of bytes available for reading from buffer.
Definition at line 549 of file mythmediabuffer.cpp.
Referenced by GetReadBufAvail(), GetRealFileSize(), ReadPriv(), Seek(), and WaitForAvail().
|
protected |
Restart the read-ahead thread at the 'newinternal' position.
This is called after a Seek(long long, int) so that the read-ahead buffer doesn't contain any stale data, and so that it will read any new data from the new position in the file.
NewInternal | Position in file to start reading data from |
Definition at line 569 of file mythmediabuffer.cpp.
Referenced by Reset(), run(), MythInteractiveBuffer::SeekInternal(), MythFileBuffer::SeekInternal(), MythBDBuffer::SeekInternal(), and MythDVDBuffer::SeekInternal().
|
protected |
Stops the read-ahead thread, and waits for it to stop.
Definition at line 647 of file mythmediabuffer.cpp.
Referenced by HLSRingBuffer::~HLSRingBuffer(), MythBDBuffer::~MythBDBuffer(), MythDVDBuffer::~MythDVDBuffer(), MythDVDStream::~MythDVDStream(), MythFileBuffer::~MythFileBuffer(), MythInteractiveBuffer::~MythInteractiveBuffer(), and MythStreamingBuffer::~MythStreamingBuffer().
|
protected |
Definition at line 1559 of file mythmediabuffer.cpp.
Referenced by GetDecoderRate(), and Read().
|
protected |
Definition at line 1590 of file mythmediabuffer.cpp.
Referenced by GetStorageRate(), ReadDirect(), and run().
|
protectedpure virtual |
Implemented in HLSRingBuffer, MythDVDBuffer, MythBDBuffer, MythDVDStream, MythStreamingBuffer, MythInteractiveBuffer, and MythFileBuffer.
Referenced by ReadDirect(), and run().
|
inlineprotectedvirtual |
Reimplemented in HLSRingBuffer, MythStreamingBuffer, MythFileBuffer, and MythInteractiveBuffer.
Definition at line 157 of file mythmediabuffer.h.
Referenced by GetRealFileSize().
|
protectedpure virtual |
Implemented in MythDVDBuffer, MythBDBuffer, MythDVDStream, MythStreamingBuffer, MythFileBuffer, MythInteractiveBuffer, and HLSRingBuffer.
Referenced by Seek().
|
friend |
Definition at line 52 of file mythmediabuffer.h.
|
staticconstexpr |
Definition at line 62 of file mythmediabuffer.h.
Referenced by MythFileOpen().
|
staticconstexpr |
Definition at line 63 of file mythmediabuffer.h.
Referenced by TV::HandleStateChange(), MythPlayerUI::JumpToProgram(), TV::SwitchInputs(), and MythPlayerUI::SwitchToProgram().
|
protected |
Definition at line 162 of file mythmediabuffer.h.
Referenced by GetAvailableBuffer(), GetType(), IsBD(), and IsDVD().
|
mutableprotected |
Definition at line 164 of file mythmediabuffer.h.
Referenced by CreateReadAheadBuffer(), MythFileBuffer::GetReadPosition(), MythDVDStream::GetReadPosition(), GetWritePosition(), IsNearEnd(), Read(), ReadDirect(), MythFileBuffer::ReOpen(), Reset(), run(), MythFileBuffer::SafeRead(), Seek(), MythFileBuffer::SeekInternal(), MythInteractiveBuffer::SeekInternal(), MythStreamingBuffer::SeekInternal(), MythDVDStream::SeekInternal(), HLSRingBuffer::SeekInternal(), MythBDBuffer::SeekInternal(), MythDVDBuffer::SeekInternal(), SetAdjustFilesize(), Write(), and WriterSeek().
|
protected |
Definition at line 165 of file mythmediabuffer.h.
Referenced by MythFileBuffer::GetReadPosition(), IsNearEnd(), Read(), ReadDirect(), Reset(), run(), Seek(), MythInteractiveBuffer::SeekInternal(), MythFileBuffer::SeekInternal(), MythBDBuffer::SeekInternal(), and MythDVDBuffer::SeekInternal().
|
protected |
Definition at line 166 of file mythmediabuffer.h.
Referenced by GetWritePosition(), MythFileBuffer::ReOpen(), Reset(), Write(), and WriterSeek().
|
protected |
Definition at line 167 of file mythmediabuffer.h.
Referenced by IsNearEnd(), Reset(), ResetReadAhead(), run(), MythFileBuffer::SafeRead(), MythFileBuffer::SeekInternal(), and SetAdjustFilesize().
|
protected |
Definition at line 168 of file mythmediabuffer.h.
Referenced by ReadDirect(), ReadPriv(), run(), MythInteractiveBuffer::SeekInternal(), MythFileBuffer::SeekInternal(), MythBDBuffer::SeekInternal(), and MythDVDBuffer::SeekInternal().
|
mutableprotected |
Definition at line 170 of file mythmediabuffer.h.
Referenced by ReadBufAvail(), ReadBufFree(), ReadPriv(), ResetReadAhead(), run(), MythFileBuffer::SeekInternal(), and SetReadInternalMode().
|
protected |
Definition at line 171 of file mythmediabuffer.h.
Referenced by CreateReadAheadBuffer(), GetAvailableBuffer(), ReadBufAvail(), ReadBufFree(), ReadPriv(), ResetReadAhead(), run(), MythFileBuffer::SeekInternal(), and SetReadInternalMode().
|
mutableprotected |
Definition at line 173 of file mythmediabuffer.h.
Referenced by ReadBufAvail(), ReadBufFree(), ResetReadAhead(), run(), and MythFileBuffer::SeekInternal().
|
protected |
Definition at line 174 of file mythmediabuffer.h.
Referenced by CreateReadAheadBuffer(), GetAvailableBuffer(), ReadBufAvail(), ReadBufFree(), ResetReadAhead(), run(), and MythFileBuffer::SeekInternal().
Definition at line 178 of file mythmediabuffer.h.
Referenced by GetStopReads(), IsNearEnd(), ReadPriv(), run(), MythFileBuffer::SafeRead(), StartReads(), StopReads(), WaitForAvail(), and WaitForReadsAllowed().
|
protected |
Definition at line 181 of file mythmediabuffer.h.
Referenced by GetSafeFilename(), MythFileBuffer::MythFileBuffer(), MythInteractiveBuffer::OpenFile(), MythFileBuffer::OpenFile(), MythStreamingBuffer::OpenFile(), MythBDBuffer::OpenFile(), HLSRingBuffer::OpenFile(), and MythDVDBuffer::OpenFile().
|
mutableprotected |
Definition at line 183 of file mythmediabuffer.h.
Referenced by MythDVDBuffer::ClearChapterCache(), MythDVDBuffer::CloseDVD(), CreateReadAheadBuffer(), GetFilename(), GetLastError(), GetReadBufAvail(), GetRealFileSize(), MythFileBuffer::GetRealFileSizeInternal(), MythStreamingBuffer::GetRealFileSizeInternal(), HLSRingBuffer::GetRealFileSizeInternal(), GetSubtitleFilename(), IgnoreLiveEOF(), IsNearEnd(), MythFileBuffer::IsOpen(), MythStreamingBuffer::IsOpen(), MythDVDStream::IsOpen(), KillReadAheadThread(), LiveMode(), MythInteractiveBuffer::OpenFile(), MythFileBuffer::OpenFile(), MythStreamingBuffer::OpenFile(), MythDVDStream::OpenFile(), MythBDBuffer::OpenFile(), HLSRingBuffer::OpenFile(), MythDVDBuffer::OpenFile(), Pause(), PauseAndWait(), ReadPriv(), MythFileBuffer::ReOpen(), Reset(), run(), MythDVDBuffer::SafeRead(), Seek(), SetAdjustFilesize(), SetBufferSizeFactors(), SetLiveMode(), SetOldFile(), SetReadInternalMode(), Start(), Sync(), Unpause(), UpdatePlaySpeed(), UpdateRawBitrate(), WaitForAvail(), WaitForPause(), MythDVDBuffer::WaitForPlayer(), WaitForReadsAllowed(), Write(), WriterFlush(), WriterSeek(), WriterSetBlocking(), HLSRingBuffer::~HLSRingBuffer(), MythDVDStream::~MythDVDStream(), and MythStreamingBuffer::~MythStreamingBuffer().
|
protected |
Definition at line 184 of file mythmediabuffer.h.
Referenced by GetFilename(), MythFileBuffer::GetRealFileSizeInternal(), MythFileBuffer::MythFileBuffer(), MythInteractiveBuffer::OpenFile(), MythFileBuffer::OpenFile(), MythStreamingBuffer::OpenFile(), MythBDBuffer::OpenFile(), HLSRingBuffer::OpenFile(), MythDVDBuffer::OpenFile(), MythFileBuffer::ReOpen(), run(), MythFileBuffer::SeekInternal(), MythDVDBuffer::SetDVDSpeed(), and MythDVDBuffer::StartFromBeginning().
|
protected |
Definition at line 185 of file mythmediabuffer.h.
Referenced by GetSubtitleFilename(), and MythFileBuffer::OpenFile().
|
protected |
Definition at line 186 of file mythmediabuffer.h.
Referenced by GetLastError(), MythFileBuffer::OpenFile(), MythStreamingBuffer::OpenFile(), MythBDBuffer::OpenFile(), and MythDVDBuffer::OpenFile().
|
protected |
Definition at line 187 of file mythmediabuffer.h.
Referenced by MythFileBuffer::IsOpen(), MythFileBuffer::MythFileBuffer(), MythFileBuffer::ReOpen(), Sync(), Write(), WriterFlush(), WriterSeek(), WriterSetBlocking(), MythFileBuffer::~MythFileBuffer(), and ~MythMediaBuffer().
|
protected |
Definition at line 188 of file mythmediabuffer.h.
Referenced by MythFileBuffer::GetRealFileSizeInternal(), MythFileBuffer::IsOpen(), MythFileBuffer::OpenFile(), ReadDirect(), MythFileBuffer::SafeRead(), MythFileBuffer::SeekInternal(), and MythFileBuffer::~MythFileBuffer().
Definition at line 189 of file mythmediabuffer.h.
Referenced by MythFileBuffer::MythFileBuffer(), ReadPriv(), MythFileBuffer::ReOpen(), MythFileBuffer::SeekInternal(), Start(), and Write().
|
protected |
Definition at line 190 of file mythmediabuffer.h.
Referenced by CreateReadAheadBuffer(), MythFileBuffer::GetRealFileSizeInternal(), MythFileBuffer::IsOpen(), MythFileBuffer::MythFileBuffer(), MythFileBuffer::OpenFile(), ReadDirect(), MythFileBuffer::ReOpen(), MythFileBuffer::SafeRead(), MythFileBuffer::SeekInternal(), Write(), and MythFileBuffer::~MythFileBuffer().
|
protected |
Definition at line 191 of file mythmediabuffer.h.
Referenced by CalcReadAheadThresh(), CreateReadAheadBuffer(), GetAvailableBuffer(), GetBufferSize(), ReadBufAvail(), ReadBufFree(), ReadPriv(), run(), MythFileBuffer::SeekInternal(), and SetReadInternalMode().
Definition at line 192 of file mythmediabuffer.h.
Referenced by CalcReadAheadThresh(), and WaitForAvail().
Definition at line 193 of file mythmediabuffer.h.
Referenced by CreateReadAheadBuffer(), and SetBufferSizeFactors().
Definition at line 194 of file mythmediabuffer.h.
Referenced by CreateReadAheadBuffer(), and SetBufferSizeFactors().
Definition at line 195 of file mythmediabuffer.h.
Referenced by HLSRingBuffer::HLSRingBuffer(), MythFileBuffer::MythFileBuffer(), MythInteractiveBuffer::MythInteractiveBuffer(), MythStreamingBuffer::MythStreamingBuffer(), and Start().
|
protected |
Definition at line 196 of file mythmediabuffer.h.
Referenced by CreateReadAheadBuffer(), ReadPriv(), run(), and ~MythMediaBuffer().
Definition at line 197 of file mythmediabuffer.h.
Referenced by KillReadAheadThread(), PauseAndWait(), ReadPriv(), run(), MythDVDBuffer::SafeRead(), MythFileBuffer::SeekInternal(), MythInteractiveBuffer::SeekInternal(), MythBDBuffer::SeekInternal(), MythDVDBuffer::SeekInternal(), Start(), WaitForAvail(), WaitForPause(), and WaitForReadsAllowed().
Definition at line 198 of file mythmediabuffer.h.
Definition at line 199 of file mythmediabuffer.h.
Referenced by Pause(), PauseAndWait(), ReadPriv(), run(), Unpause(), WaitForAvail(), WaitForPause(), and WaitForReadsAllowed().
Definition at line 200 of file mythmediabuffer.h.
Referenced by IsNearEnd(), PauseAndWait(), and WaitForPause().
Definition at line 201 of file mythmediabuffer.h.
Referenced by IsNearEnd(), MythFileBuffer::OpenFile(), MythBDBuffer::OpenFile(), MythDVDBuffer::OpenFile(), ReadPriv(), ResetReadAhead(), run(), MythInteractiveBuffer::SafeRead(), MythStreamingBuffer::SafeRead(), MythFileBuffer::SeekInternal(), MythStreamingBuffer::SeekInternal(), and WaitForAvail().
Definition at line 202 of file mythmediabuffer.h.
Referenced by run(), and SetWaitForWrite().
Definition at line 203 of file mythmediabuffer.h.
Referenced by run().
Definition at line 204 of file mythmediabuffer.h.
Referenced by CalcReadAheadThresh(), ResetReadAhead(), run(), MythFileBuffer::SeekInternal(), and WaitForReadsAllowed().
Definition at line 205 of file mythmediabuffer.h.
Referenced by CalcReadAheadThresh(), ResetReadAhead(), run(), MythFileBuffer::SeekInternal(), and WaitForReadsAllowed().
Definition at line 206 of file mythmediabuffer.h.
Referenced by ResetReadAhead(), MythFileBuffer::SeekInternal(), and WaitForReadsAllowed().
Definition at line 207 of file mythmediabuffer.h.
Referenced by IsNearEnd(), MythFileBuffer::OpenFile(), MythBDBuffer::OpenFile(), MythDVDBuffer::OpenFile(), ReadPriv(), Reset(), ResetReadAhead(), run(), and WaitForAvail().
|
protected |
Definition at line 208 of file mythmediabuffer.h.
Referenced by CalcReadAheadThresh(), IsNearEnd(), MythInteractiveBuffer::OpenFile(), MythBDBuffer::OpenFile(), MythDVDBuffer::OpenFile(), and UpdateRawBitrate().
|
protected |
Definition at line 209 of file mythmediabuffer.h.
Referenced by CalcReadAheadThresh(), IsNearEnd(), and UpdatePlaySpeed().
|
protected |
Definition at line 210 of file mythmediabuffer.h.
Referenced by CalcReadAheadThresh(), and run().
|
protected |
Definition at line 211 of file mythmediabuffer.h.
Referenced by CalcReadAheadThresh(), run(), MythFileBuffer::SeekInternal(), and WaitForAvail().
|
protected |
Definition at line 212 of file mythmediabuffer.h.
Referenced by CalcReadAheadThresh(), MythBDBuffer::OpenFile(), MythDVDBuffer::OpenFile(), run(), and MythFileBuffer::SeekInternal().
|
protected |
Definition at line 213 of file mythmediabuffer.h.
Referenced by ReadPriv(), and WaitForAvail().
|
protected |
Definition at line 214 of file mythmediabuffer.h.
Referenced by MythFileBuffer::OpenFile(), MythBDBuffer::OpenFile(), MythDVDBuffer::OpenFile(), Reset(), run(), and MythFileBuffer::SafeRead().
Definition at line 215 of file mythmediabuffer.h.
Referenced by GetCommsError(), MythFileBuffer::OpenFile(), MythBDBuffer::OpenFile(), MythDVDBuffer::OpenFile(), ReadPriv(), Reset(), ResetCommsError(), run(), WaitForAvail(), and WaitForReadsAllowed().
Definition at line 216 of file mythmediabuffer.h.
Referenced by MythFileBuffer::OpenFile(), MythFileBuffer::SafeRead(), and SetOldFile().
|
protected |
Definition at line 217 of file mythmediabuffer.h.
Referenced by LiveMode(), ReadPriv(), run(), MythFileBuffer::SafeRead(), SetLiveMode(), and WaitForAvail().
Definition at line 218 of file mythmediabuffer.h.
Referenced by IgnoreLiveEOF(), and run().
|
protected |
Definition at line 219 of file mythmediabuffer.h.
Referenced by Reset(), MythFileBuffer::SafeRead(), MythFileBuffer::SeekInternal(), MythInteractiveBuffer::SeekInternal(), MythBDBuffer::SeekInternal(), MythDVDBuffer::SeekInternal(), and SetAdjustFilesize().
|
protected |
Definition at line 220 of file mythmediabuffer.h.
Referenced by ReadPriv(), ResetReadAhead(), Seek(), and SetReadInternalMode().
Definition at line 221 of file mythmediabuffer.h.
Referenced by GetRealFileSize(), IsReadInternalMode(), ReadPriv(), ResetReadAhead(), Seek(), SetReadInternalMode(), and WaitForReadsAllowed().
Definition at line 224 of file mythmediabuffer.h.
Referenced by EnableBitrateMonitor(), UpdateDecoderRate(), and UpdateStorageRate().
|
protected |
Definition at line 225 of file mythmediabuffer.h.
Referenced by UpdateDecoderRate().
|
protected |
Definition at line 226 of file mythmediabuffer.h.
Referenced by UpdateDecoderRate().
|
protected |
Definition at line 227 of file mythmediabuffer.h.
Referenced by UpdateStorageRate().
|
protected |
Definition at line 228 of file mythmediabuffer.h.
Referenced by UpdateStorageRate().
|
protected |
Condition to signal that the read ahead thread is running.
Definition at line 237 of file mythmediabuffer.h.
Referenced by KillReadAheadThread(), PauseAndWait(), ReadPriv(), Reset(), ResetReadAhead(), run(), Seek(), MythInteractiveBuffer::SeekInternal(), MythFileBuffer::SeekInternal(), MythDVDStream::SeekInternal(), MythBDBuffer::SeekInternal(), MythDVDBuffer::SeekInternal(), SetReadInternalMode(), Start(), StartReads(), StopReads(), Unpause(), WaitForAvail(), WaitForPause(), and WaitForReadsAllowed().
Definition at line 240 of file mythmediabuffer.h.
Referenced by CalcReadAheadThresh(), and UpdateRawBitrate().