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

#include <StreamDetails.h>

Inheritance diagram for CStreamDetails:
IArchivable ISerializable

Public Member Functions

 CStreamDetails ()
 
 CStreamDetails (const CStreamDetails &that)
 
CStreamDetailsoperator= (const CStreamDetails &that)
 
bool operator== (const CStreamDetails &that) const
 
bool operator!= (const CStreamDetails &that) const
 
bool HasItems (void) const
 
int GetStreamCount (CStreamDetail::StreamType type) const
 
int GetVideoStreamCount (void) const
 
int GetAudioStreamCount (void) const
 
int GetSubtitleStreamCount (void) const
 
const CStreamDetailGetNthStream (CStreamDetail::StreamType type, int idx) const
 
std::string GetVideoCodec (int idx=0) const
 
float GetVideoAspect (int idx=0) const
 
int GetVideoWidth (int idx=0) const
 
int GetVideoHeight (int idx=0) const
 
std::string GetVideoHdrType (int idx=0) const
 
int GetVideoDuration (int idx=0) const
 
void SetVideoDuration (int idx, const int duration)
 
std::string GetStereoMode (int idx=0) const
 
std::string GetVideoLanguage (int idx=0) const
 
std::string GetAudioCodec (int idx=0) const
 
std::string GetAudioLanguage (int idx=0) const
 
int GetAudioChannels (int idx=0) const
 
std::string GetSubtitleLanguage (int idx=0) const
 
void AddStream (CStreamDetail *item)
 
void Reset (void)
 
void DetermineBestStreams (void)
 
void Archive (CArchive &ar) override
 
void Serialize (CVariant &value) const override
 
bool SetStreams (const VideoStreamInfo &videoInfo, int videoDuration, const AudioStreamInfo &audioInfo, const SubtitleStreamInfo &subtitleInfo)
 
- Public Member Functions inherited from IArchivable
- Public Member Functions inherited from ISerializable

Static Public Member Functions

static std::string VideoDimsToResolutionDescription (int iWidth, int iHeight)
 
static std::string VideoAspectToAspectDescription (float fAspect)
 
static std::string HdrTypeToString (StreamHdrType hdrType)
 

Additional Inherited Members

- Protected Member Functions inherited from IArchivable
virtual ~IArchivable ()=default
 
- Protected Member Functions inherited from ISerializable
 ~ISerializable ()=default
 

Constructor & Destructor Documentation

◆ CStreamDetails() [1/2]

CStreamDetails::CStreamDetails ( )
inline

◆ CStreamDetails() [2/2]

CStreamDetails::CStreamDetails ( const CStreamDetails & that)

Member Function Documentation

◆ AddStream()

void CStreamDetails::AddStream ( CStreamDetail * item)

◆ Archive()

void CStreamDetails::Archive ( CArchive & ar)
overridevirtual

Implements IArchivable.

◆ DetermineBestStreams()

void CStreamDetails::DetermineBestStreams ( void )

◆ GetAudioChannels()

int CStreamDetails::GetAudioChannels ( int idx = 0) const

◆ GetAudioCodec()

std::string CStreamDetails::GetAudioCodec ( int idx = 0) const

◆ GetAudioLanguage()

std::string CStreamDetails::GetAudioLanguage ( int idx = 0) const

◆ GetAudioStreamCount()

int CStreamDetails::GetAudioStreamCount ( void ) const

◆ GetNthStream()

const CStreamDetail * CStreamDetails::GetNthStream ( CStreamDetail::StreamType type,
int idx ) const

◆ GetStereoMode()

std::string CStreamDetails::GetStereoMode ( int idx = 0) const

◆ GetStreamCount()

int CStreamDetails::GetStreamCount ( CStreamDetail::StreamType type) const

◆ GetSubtitleLanguage()

std::string CStreamDetails::GetSubtitleLanguage ( int idx = 0) const

◆ GetSubtitleStreamCount()

int CStreamDetails::GetSubtitleStreamCount ( void ) const

◆ GetVideoAspect()

float CStreamDetails::GetVideoAspect ( int idx = 0) const

◆ GetVideoCodec()

std::string CStreamDetails::GetVideoCodec ( int idx = 0) const

◆ GetVideoDuration()

int CStreamDetails::GetVideoDuration ( int idx = 0) const

◆ GetVideoHdrType()

std::string CStreamDetails::GetVideoHdrType ( int idx = 0) const

◆ GetVideoHeight()

int CStreamDetails::GetVideoHeight ( int idx = 0) const

◆ GetVideoLanguage()

std::string CStreamDetails::GetVideoLanguage ( int idx = 0) const

◆ GetVideoStreamCount()

int CStreamDetails::GetVideoStreamCount ( void ) const

◆ GetVideoWidth()

int CStreamDetails::GetVideoWidth ( int idx = 0) const

◆ HasItems()

bool CStreamDetails::HasItems ( void ) const
inline

◆ HdrTypeToString()

std::string CStreamDetails::HdrTypeToString ( StreamHdrType hdrType)
static

◆ operator!=()

bool CStreamDetails::operator!= ( const CStreamDetails & that) const

◆ operator=()

CStreamDetails & CStreamDetails::operator= ( const CStreamDetails & that)

◆ operator==()

bool CStreamDetails::operator== ( const CStreamDetails & that) const

◆ Reset()

void CStreamDetails::Reset ( void )

◆ Serialize()

void CStreamDetails::Serialize ( CVariant & value) const
overridevirtual

Implements ISerializable.

◆ SetStreams()

bool CStreamDetails::SetStreams ( const VideoStreamInfo & videoInfo,
int videoDuration,
const AudioStreamInfo & audioInfo,
const SubtitleStreamInfo & subtitleInfo )

◆ SetVideoDuration()

void CStreamDetails::SetVideoDuration ( int idx,
const int duration )

◆ VideoAspectToAspectDescription()

std::string CStreamDetails::VideoAspectToAspectDescription ( float fAspect)
static

◆ VideoDimsToResolutionDescription()

std::string CStreamDetails::VideoDimsToResolutionDescription ( int iWidth,
int iHeight )
static

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