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

#include <DVDInputStream.h>

Inheritance diagram for CDVDInputStream:
CDVDInputStreamBluray CDVDInputStreamFFmpeg CDVDInputStreamFile CDVDInputStreamMemory CDVDInputStreamNavigator CDVDInputStreamStack CInputStreamAddon CInputStreamPVRBase InputStreamMultiStreams

Classes

class  IChapter
 
class  IDemux
 
class  IDisplayTime
 
class  IMenus
 
class  IPosTime
 
class  ITimes
 

Public Types

enum  ENextStream { NEXTSTREAM_NONE , NEXTSTREAM_OPEN , NEXTSTREAM_RETRY }
 

Public Member Functions

 CDVDInputStream (DVDStreamType m_streamType, const CFileItem &fileitem)
 
virtual ~CDVDInputStream ()
 
virtual bool Open ()
 
virtual void Close ()
 
virtual int Read (uint8_t *buf, int buf_size)=0
 
virtual int64_t Seek (int64_t offset, int whence)=0
 
virtual int64_t GetLength ()=0
 
virtual std::string & GetContent ()
 
virtual std::string GetFileName ()
 
virtual CURL GetURL ()
 
virtual ENextStream NextStream ()
 
virtual void Abort ()
 
virtual int GetBlockSize ()
 
virtual bool CanSeek ()
 
virtual bool CanPause ()
 
virtual void SetReadRate (uint32_t rate)
 Indicate expected read rate in bytes per second. This could be used to throttle caching rate. Should be seen as only a hint.
 
virtual bool GetCacheStatus (XFILE::SCacheStatus *status)
 Get the cache status.
 
bool IsStreamType (DVDStreamType type) const
 
virtual bool IsEOF ()=0
 
virtual BitstreamStats GetBitstreamStats () 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

DVDStreamType m_streamType
 
BitstreamStats m_stats
 
std::string m_content
 
CFileItem m_item
 
bool m_contentLookup
 
bool m_realtime
 

Member Enumeration Documentation

◆ ENextStream

Enumerator
NEXTSTREAM_NONE 
NEXTSTREAM_OPEN 
NEXTSTREAM_RETRY 

Constructor & Destructor Documentation

◆ CDVDInputStream()

CDVDInputStream::CDVDInputStream ( DVDStreamType m_streamType,
const CFileItem & fileitem )

◆ ~CDVDInputStream()

CDVDInputStream::~CDVDInputStream ( )
virtualdefault

Member Function Documentation

◆ Abort()

virtual void CDVDInputStream::Abort ( )
inlinevirtual

◆ CanPause()

virtual bool CDVDInputStream::CanPause ( )
inlinevirtual
Todo
drop this

Reimplemented in CInputStreamAddon, and CInputStreamPVRBase.

◆ CanSeek()

virtual bool CDVDInputStream::CanSeek ( )
inlinevirtual

◆ Close()

◆ ContentLookup()

bool CDVDInputStream::ContentLookup ( )
inline

◆ GetBitstreamStats()

virtual BitstreamStats CDVDInputStream::GetBitstreamStats ( ) const
inlinevirtual

◆ GetBlockSize()

virtual int CDVDInputStream::GetBlockSize ( )
inlinevirtual

◆ GetCacheStatus()

virtual bool CDVDInputStream::GetCacheStatus ( XFILE::SCacheStatus * status)
inlinevirtual

Get the cache status.

Returns
true when cache status was successfully obtained

Reimplemented in CDVDInputStreamFile, and CInputStreamMultiSource.

◆ GetContent()

virtual std::string & CDVDInputStream::GetContent ( )
inlinevirtual

◆ GetFileName()

std::string CDVDInputStream::GetFileName ( )
virtual

Reimplemented in CDVDInputStreamFFmpeg.

◆ GetIChapter()

virtual IChapter * CDVDInputStream::GetIChapter ( )
inlinevirtual

Reimplemented in CInputStreamAddon.

◆ GetIDemux()

virtual IDemux * CDVDInputStream::GetIDemux ( )
inlinevirtual

◆ GetIDisplayTime()

virtual IDisplayTime * CDVDInputStream::GetIDisplayTime ( )
inlinevirtual

◆ GetIPosTime()

virtual IPosTime * CDVDInputStream::GetIPosTime ( )
inlinevirtual

◆ GetITimes()

virtual ITimes * CDVDInputStream::GetITimes ( )
inlinevirtual

Reimplemented in CInputStreamAddon, and CInputStreamPVRBase.

◆ GetLength()

◆ GetProperty()

const CVariant & CDVDInputStream::GetProperty ( const std::string & key)
inline

◆ GetURL()

CURL CDVDInputStream::GetURL ( )
virtual

◆ IsEOF()

◆ IsRealtime()

virtual bool CDVDInputStream::IsRealtime ( )
inlinevirtual

Reimplemented in CInputStreamAddon, and CInputStreamPVRBase.

◆ IsStreamType()

bool CDVDInputStream::IsStreamType ( DVDStreamType type) const
inline

◆ NextStream()

virtual ENextStream CDVDInputStream::NextStream ( )
inlinevirtual

◆ Open()

◆ Read()

◆ Seek()

◆ SetReadRate()

virtual void CDVDInputStream::SetReadRate ( uint32_t rate)
inlinevirtual

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

Reimplemented in CDVDInputStreamFile, and CInputStreamMultiSource.

◆ SetRealtime()

void CDVDInputStream::SetRealtime ( bool realtime)
inline

Member Data Documentation

◆ m_content

std::string CDVDInputStream::m_content
protected

◆ m_contentLookup

bool CDVDInputStream::m_contentLookup
protected

◆ m_item

CFileItem CDVDInputStream::m_item
protected

◆ m_realtime

bool CDVDInputStream::m_realtime
protected

◆ m_stats

BitstreamStats CDVDInputStream::m_stats
protected

◆ m_streamType

DVDStreamType CDVDInputStream::m_streamType
protected

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