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

#include <DVDDemuxClient.h>

Inheritance diagram for CDVDDemuxClient:
CDVDDemux

Public Member Functions

 CDVDDemuxClient ()
 
 ~CDVDDemuxClient () override
 
bool Open (std::shared_ptr< CDVDInputStream > pInput)
 
void Dispose ()
 
bool Reset () override
 
void Abort () override
 
void Flush () override
 
DemuxPacketRead () override
 
bool SeekTime (double time, bool backwards=false, double *startpts=NULL) override
 
void SetSpeed (int iSpeed) override
 
void FillBuffer (bool mode) override
 
CDemuxStreamGetStream (int iStreamId) const override
 
std::vector< CDemuxStream * > GetStreams () const override
 
int GetNrOfStreams () const override
 
std::string GetFileName () override
 
std::string GetStreamCodecName (int iStreamId) override
 
void EnableStream (int id, bool enable) override
 
void OpenStream (int id) override
 
void SetVideoResolution (unsigned int width, unsigned int height) override
 
- Public Member Functions inherited from CDVDDemux
 CDVDDemux ()
 
virtual ~CDVDDemux ()=default
 
virtual bool SeekChapter (int chapter, double *startpts=NULL)
 
virtual int GetChapterCount ()
 
virtual int GetChapter ()
 
virtual void GetChapterName (std::string &strChapterName, int chapterIdx=-1)
 
virtual int64_t GetChapterPos (int chapterIdx=-1)
 
virtual int GetStreamLength ()
 
virtual CDemuxStreamGetStream (int64_t demuxerId, int iStreamId) const
 
virtual int GetPrograms (std::vector< ProgramInfo > &programs)
 
virtual void SetProgram (int progId)
 
int GetNrOfSubtitleStreams ()
 
virtual std::string GetStreamCodecName (int64_t demuxerId, int iStreamId)
 
virtual void EnableStream (int64_t demuxerId, int id, bool enable)
 
virtual void OpenStream (int64_t demuxerId, int id)
 
int64_t GetDemuxerId ()
 

Protected Member Functions

void RequestStreams ()
 
void SetStreamProps (CDemuxStream *stream, std::map< int, std::shared_ptr< CDemuxStream > > &map, bool forceInit)
 
bool ParsePacket (DemuxPacket *pPacket)
 
void DisposeStreams ()
 
std::shared_ptr< CDemuxStreamGetStreamInternal (int iStreamId)
 
bool IsVideoReady ()
 
- Protected Member Functions inherited from CDVDDemux
int GetNrOfStreams (StreamType streamType)
 

Protected Attributes

std::shared_ptr< CDVDInputStreamm_pInput
 
std::shared_ptr< CDVDInputStream::IDemuxm_IDemux
 
std::map< int, std::shared_ptr< CDemuxStream > > m_streams
 
int m_displayTime
 
double m_dtsAtDisplayTime
 
std::unique_ptr< DemuxPacketm_packet
 
int m_videoStreamPlaying = -1
 
- Protected Attributes inherited from CDVDDemux
int64_t m_demuxerId
 

Constructor & Destructor Documentation

◆ CDVDDemuxClient()

CDVDDemuxClient::CDVDDemuxClient ( )

◆ ~CDVDDemuxClient()

CDVDDemuxClient::~CDVDDemuxClient ( )
override

Member Function Documentation

◆ Abort()

void CDVDDemuxClient::Abort ( )
overridevirtual

Reimplemented from CDVDDemux.

◆ Dispose()

void CDVDDemuxClient::Dispose ( )

◆ DisposeStreams()

void CDVDDemuxClient::DisposeStreams ( )
protected

◆ EnableStream()

void CDVDDemuxClient::EnableStream ( int id,
bool enable )
overridevirtual

Reimplemented from CDVDDemux.

◆ FillBuffer()

void CDVDDemuxClient::FillBuffer ( bool mode)
overridevirtual

Reimplemented from CDVDDemux.

◆ Flush()

void CDVDDemuxClient::Flush ( )
overridevirtual

Implements CDVDDemux.

◆ GetFileName()

std::string CDVDDemuxClient::GetFileName ( )
overridevirtual

Reimplemented from CDVDDemux.

◆ GetNrOfStreams()

int CDVDDemuxClient::GetNrOfStreams ( ) const
overridevirtual

Implements CDVDDemux.

◆ GetStream()

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

Implements CDVDDemux.

◆ GetStreamCodecName()

std::string CDVDDemuxClient::GetStreamCodecName ( int iStreamId)
overridevirtual

Reimplemented from CDVDDemux.

◆ GetStreamInternal()

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

◆ GetStreams()

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

Implements CDVDDemux.

◆ IsVideoReady()

bool CDVDDemuxClient::IsVideoReady ( )
protected

◆ Open()

bool CDVDDemuxClient::Open ( std::shared_ptr< CDVDInputStream > pInput)

◆ OpenStream()

void CDVDDemuxClient::OpenStream ( int id)
overridevirtual

Reimplemented from CDVDDemux.

◆ ParsePacket()

bool CDVDDemuxClient::ParsePacket ( DemuxPacket * pPacket)
protected

◆ Read()

DemuxPacket * CDVDDemuxClient::Read ( )
overridevirtual
Todo
drop this block

Implements CDVDDemux.

◆ RequestStreams()

void CDVDDemuxClient::RequestStreams ( )
protected

◆ Reset()

bool CDVDDemuxClient::Reset ( )
overridevirtual

Implements CDVDDemux.

◆ SeekTime()

bool CDVDDemuxClient::SeekTime ( double time,
bool backwards = false,
double * startpts = NULL )
overridevirtual

Implements CDVDDemux.

◆ SetSpeed()

void CDVDDemuxClient::SetSpeed ( int iSpeed)
overridevirtual

Reimplemented from CDVDDemux.

◆ SetStreamProps()

void CDVDDemuxClient::SetStreamProps ( CDemuxStream * stream,
std::map< int, std::shared_ptr< CDemuxStream > > & map,
bool forceInit )
protected

◆ SetVideoResolution()

void CDVDDemuxClient::SetVideoResolution ( unsigned int width,
unsigned int height )
overridevirtual

Reimplemented from CDVDDemux.

Member Data Documentation

◆ m_displayTime

int CDVDDemuxClient::m_displayTime
protected

◆ m_dtsAtDisplayTime

double CDVDDemuxClient::m_dtsAtDisplayTime
protected

◆ m_IDemux

std::shared_ptr<CDVDInputStream::IDemux> CDVDDemuxClient::m_IDemux
protected

◆ m_packet

std::unique_ptr<DemuxPacket> CDVDDemuxClient::m_packet
protected

◆ m_pInput

std::shared_ptr<CDVDInputStream> CDVDDemuxClient::m_pInput
protected

◆ m_streams

std::map<int, std::shared_ptr<CDemuxStream> > CDVDDemuxClient::m_streams
protected

◆ m_videoStreamPlaying

int CDVDDemuxClient::m_videoStreamPlaying = -1
protected

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