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

#include <InputStreamPVRBase.h>

Inheritance diagram for CInputStreamPVRBase:
CDVDInputStream CDVDInputStream::ITimes CDVDInputStream::IDemux CInputStreamPVRChannel CInputStreamPVRRecording

Public Member Functions

 CInputStreamPVRBase (IVideoPlayer *pPlayer, const CFileItem &fileitem)
 
 ~CInputStreamPVRBase () 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
 
int GetBlockSize () override
 
ENextStream NextStream () override
 
bool IsRealtime () override
 
CDVDInputStream::ITimesGetITimes () override
 
bool GetTimes (Times &times) override
 
bool CanSeek () override
 
bool CanPause () override
 
void Pause (bool bPaused)
 
CDVDInputStream::IDemuxGetIDemux () override
 
bool OpenDemux () override
 
DemuxPacketReadDemux () override
 
CDemuxStreamGetStream (int iStreamId) const override
 
std::vector< CDemuxStream * > GetStreams () const override
 
int GetNrOfStreams () const override
 
void SetSpeed (int iSpeed) override
 
void FillBuffer (bool mode) override
 
bool SeekTime (double time, bool backward=false, double *startpts=NULL) override
 
void AbortDemux () override
 
void FlushDemux () override
 
- 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 void Abort ()
 
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 BitstreamStats GetBitstreamStats () const
 
bool ContentLookup ()
 
void SetRealtime (bool realtime)
 
virtual IPosTimeGetIPosTime ()
 
virtual IDisplayTimeGetIDisplayTime ()
 
virtual IChapterGetIChapter ()
 
const CVariantGetProperty (const std::string &key)
 
- Public Member Functions inherited from CDVDInputStream::ITimes
virtual ~ITimes ()=default
 
- Public Member Functions inherited from CDVDInputStream::IDemux
virtual ~IDemux ()=default
 
virtual void EnableStream (int iStreamId, bool enable)
 
virtual bool OpenStream (int iStreamId)
 
virtual void SetVideoResolution (unsigned int width, unsigned int height, unsigned int maxWidth, unsigned int maxHeight)
 

Protected Member Functions

void UpdateStreamMap ()
 
std::shared_ptr< CDemuxStreamGetStreamInternal (int iStreamId)
 
virtual bool OpenPVRStream ()=0
 
virtual void ClosePVRStream ()=0
 
virtual int ReadPVRStream (uint8_t *buf, int buf_size)=0
 
virtual int64_t SeekPVRStream (int64_t offset, int whence)=0
 
virtual int64_t GetPVRStreamLength ()=0
 
virtual ENextStream NextPVRStream ()=0
 
virtual bool CanPausePVRStream ()=0
 
virtual bool CanSeekPVRStream ()=0
 
virtual bool IsRealtimePVRStream ()=0
 
virtual void PausePVRStream (bool paused)=0
 
virtual bool GetPVRStreamTimes (Times &times)=0
 

Protected Attributes

bool m_eof = true
 
std::shared_ptr< PVR_STREAM_PROPERTIESm_StreamProps
 
std::map< int, std::shared_ptr< CDemuxStream > > m_streamMap
 
std::shared_ptr< PVR::CPVRClientm_client
 
bool m_isOpen {false}
 
- 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

◆ CInputStreamPVRBase()

CInputStreamPVRBase::CInputStreamPVRBase ( IVideoPlayer * pPlayer,
const CFileItem & fileitem )

◆ ~CInputStreamPVRBase()

CInputStreamPVRBase::~CInputStreamPVRBase ( )
override

Member Function Documentation

◆ AbortDemux()

void CInputStreamPVRBase::AbortDemux ( )
overridevirtual

◆ CanPause()

bool CInputStreamPVRBase::CanPause ( )
overridevirtual
Todo
drop this

Reimplemented from CDVDInputStream.

◆ CanPausePVRStream()

virtual bool CInputStreamPVRBase::CanPausePVRStream ( )
protectedpure virtual

◆ CanSeek()

bool CInputStreamPVRBase::CanSeek ( )
overridevirtual

Reimplemented from CDVDInputStream.

◆ CanSeekPVRStream()

virtual bool CInputStreamPVRBase::CanSeekPVRStream ( )
protectedpure virtual

◆ Close()

void CInputStreamPVRBase::Close ( )
overridevirtual

Reimplemented from CDVDInputStream.

◆ ClosePVRStream()

virtual void CInputStreamPVRBase::ClosePVRStream ( )
protectedpure virtual

◆ FillBuffer()

void CInputStreamPVRBase::FillBuffer ( bool mode)
overridevirtual

Reimplemented from CDVDInputStream::IDemux.

◆ FlushDemux()

void CInputStreamPVRBase::FlushDemux ( )
overridevirtual

◆ GetBlockSize()

int CInputStreamPVRBase::GetBlockSize ( )
overridevirtual

Reimplemented from CDVDInputStream.

◆ GetIDemux()

CDVDInputStream::IDemux * CInputStreamPVRBase::GetIDemux ( )
inlineoverridevirtual

Reimplemented from CDVDInputStream.

Reimplemented in CInputStreamPVRChannel.

◆ GetITimes()

CDVDInputStream::ITimes * CInputStreamPVRBase::GetITimes ( )
inlineoverridevirtual

Reimplemented from CDVDInputStream.

◆ GetLength()

int64_t CInputStreamPVRBase::GetLength ( )
overridevirtual

Implements CDVDInputStream.

◆ GetNrOfStreams()

int CInputStreamPVRBase::GetNrOfStreams ( ) const
overridevirtual

◆ GetPVRStreamLength()

virtual int64_t CInputStreamPVRBase::GetPVRStreamLength ( )
protectedpure virtual

◆ GetPVRStreamTimes()

virtual bool CInputStreamPVRBase::GetPVRStreamTimes ( Times & times)
protectedpure virtual

◆ GetStream()

CDemuxStream * CInputStreamPVRBase::GetStream ( int iStreamId) const
overridevirtual

◆ GetStreamInternal()

std::shared_ptr< CDemuxStream > CInputStreamPVRBase::GetStreamInternal ( int iStreamId)
protected

◆ GetStreams()

std::vector< CDemuxStream * > CInputStreamPVRBase::GetStreams ( ) const
overridevirtual

◆ GetTimes()

bool CInputStreamPVRBase::GetTimes ( Times & times)
overridevirtual

◆ IsEOF()

bool CInputStreamPVRBase::IsEOF ( )
overridevirtual

Implements CDVDInputStream.

◆ IsRealtime()

bool CInputStreamPVRBase::IsRealtime ( )
overridevirtual

Reimplemented from CDVDInputStream.

◆ IsRealtimePVRStream()

virtual bool CInputStreamPVRBase::IsRealtimePVRStream ( )
protectedpure virtual

◆ NextPVRStream()

virtual ENextStream CInputStreamPVRBase::NextPVRStream ( )
protectedpure virtual

◆ NextStream()

CDVDInputStream::ENextStream CInputStreamPVRBase::NextStream ( )
overridevirtual

Reimplemented from CDVDInputStream.

◆ Open()

bool CInputStreamPVRBase::Open ( )
overridevirtual

Reimplemented from CDVDInputStream.

◆ OpenDemux()

bool CInputStreamPVRBase::OpenDemux ( )
overridevirtual

◆ OpenPVRStream()

virtual bool CInputStreamPVRBase::OpenPVRStream ( )
protectedpure virtual

◆ Pause()

void CInputStreamPVRBase::Pause ( bool bPaused)

◆ PausePVRStream()

virtual void CInputStreamPVRBase::PausePVRStream ( bool paused)
protectedpure virtual

◆ Read()

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

Implements CDVDInputStream.

◆ ReadDemux()

DemuxPacket * CInputStreamPVRBase::ReadDemux ( )
overridevirtual

◆ ReadPVRStream()

virtual int CInputStreamPVRBase::ReadPVRStream ( uint8_t * buf,
int buf_size )
protectedpure virtual

◆ Seek()

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

Implements CDVDInputStream.

◆ SeekPVRStream()

virtual int64_t CInputStreamPVRBase::SeekPVRStream ( int64_t offset,
int whence )
protectedpure virtual

◆ SeekTime()

bool CInputStreamPVRBase::SeekTime ( double time,
bool backward = false,
double * startpts = NULL )
overridevirtual

◆ SetSpeed()

void CInputStreamPVRBase::SetSpeed ( int iSpeed)
overridevirtual

◆ UpdateStreamMap()

void CInputStreamPVRBase::UpdateStreamMap ( )
protected

Member Data Documentation

◆ m_client

std::shared_ptr<PVR::CPVRClient> CInputStreamPVRBase::m_client
protected

◆ m_eof

bool CInputStreamPVRBase::m_eof = true
protected

◆ m_isOpen

bool CInputStreamPVRBase::m_isOpen {false}
protected

◆ m_streamMap

std::map<int, std::shared_ptr<CDemuxStream> > CInputStreamPVRBase::m_streamMap
protected

◆ m_StreamProps

std::shared_ptr<PVR_STREAM_PROPERTIES> CInputStreamPVRBase::m_StreamProps
protected

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