Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CDVDInputStreamFile Class Reference

#include <DVDInputStreamFile.h>

Inheritance diagram for CDVDInputStreamFile:
CDVDInputStream

Public Member Functions

 CDVDInputStreamFile (const CFileItem &fileitem, unsigned int flags)
 
 ~CDVDInputStreamFile () override
 
bool Open () override
 
void Close () override
 
int Read (uint8_t *buf, int buf_size) override
 
int64_t Seek (int64_t offset, int whence) override
 
bool IsEOF () override
 
int64_t GetLength () override
 
BitstreamStats GetBitstreamStats () const override
 
int GetBlockSize () override
 
void SetReadRate (uint32_t rate) override
 Indicate expected read rate in bytes per second. This could be used to throttle caching rate. Should be seen as only a hint.
 
bool GetCacheStatus (XFILE::SCacheStatus *status) override
 Get the cache status.
 
- Public Member Functions inherited from CDVDInputStream
 CDVDInputStream (DVDStreamType m_streamType, const CFileItem &fileitem)
 
virtual ~CDVDInputStream ()
 
virtual std::string & GetContent ()
 
virtual std::string GetFileName ()
 
virtual CURL GetURL ()
 
virtual ENextStream NextStream ()
 
virtual void Abort ()
 
virtual bool CanSeek ()
 
virtual bool CanPause ()
 
bool IsStreamType (DVDStreamType type) const
 
bool ContentLookup ()
 
virtual bool IsRealtime ()
 
void SetRealtime (bool realtime)
 
virtual IDemuxGetIDemux ()
 
virtual IPosTimeGetIPosTime ()
 
virtual IDisplayTimeGetIDisplayTime ()
 
virtual ITimesGetITimes ()
 
virtual IChapterGetIChapter ()
 
const CVariantGetProperty (const std::string &key)
 

Protected Attributes

XFILE::CFilem_pFile = nullptr
 
bool m_eof = false
 
unsigned int m_flags = 0
 
- Protected Attributes inherited from CDVDInputStream
DVDStreamType m_streamType
 
BitstreamStats m_stats
 
std::string m_content
 
CFileItem m_item
 
bool m_contentLookup
 
bool m_realtime
 

Additional Inherited Members

- Public Types inherited from CDVDInputStream
enum  ENextStream { NEXTSTREAM_NONE , NEXTSTREAM_OPEN , NEXTSTREAM_RETRY }
 

Constructor & Destructor Documentation

◆ CDVDInputStreamFile()

CDVDInputStreamFile::CDVDInputStreamFile ( const CFileItem & fileitem,
unsigned int flags )
explicit

◆ ~CDVDInputStreamFile()

CDVDInputStreamFile::~CDVDInputStreamFile ( )
override

Member Function Documentation

◆ Close()

void CDVDInputStreamFile::Close ( )
overridevirtual

Reimplemented from CDVDInputStream.

◆ GetBitstreamStats()

BitstreamStats CDVDInputStreamFile::GetBitstreamStats ( ) const
overridevirtual

Reimplemented from CDVDInputStream.

◆ GetBlockSize()

int CDVDInputStreamFile::GetBlockSize ( )
overridevirtual

Reimplemented from CDVDInputStream.

◆ GetCacheStatus()

bool CDVDInputStreamFile::GetCacheStatus ( XFILE::SCacheStatus * status)
overridevirtual

Get the cache status.

Returns
true when cache status was successfully obtained

Reimplemented from CDVDInputStream.

◆ GetLength()

int64_t CDVDInputStreamFile::GetLength ( )
overridevirtual

Implements CDVDInputStream.

◆ IsEOF()

bool CDVDInputStreamFile::IsEOF ( )
overridevirtual

Implements CDVDInputStream.

◆ Open()

bool CDVDInputStreamFile::Open ( )
overridevirtual

Reimplemented from CDVDInputStream.

◆ Read()

int CDVDInputStreamFile::Read ( uint8_t * buf,
int buf_size )
overridevirtual

Implements CDVDInputStream.

◆ Seek()

int64_t CDVDInputStreamFile::Seek ( int64_t offset,
int whence )
overridevirtual

Implements CDVDInputStream.

◆ SetReadRate()

void CDVDInputStreamFile::SetReadRate ( uint32_t rate)
overridevirtual

Indicate expected read rate in bytes per second. This could be used to throttle caching rate. Should be seen as only a hint.

Reimplemented from CDVDInputStream.

Member Data Documentation

◆ m_eof

bool CDVDInputStreamFile::m_eof = false
protected

◆ m_flags

unsigned int CDVDInputStreamFile::m_flags = 0
protected

◆ m_pFile

XFILE::CFile* CDVDInputStreamFile::m_pFile = nullptr
protected

The documentation for this class was generated from the following files: