Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
CDVDFileInfo Class Reference

#include <DVDFileInfo.h>

Static Public Member Functions

static bool ExtractThumb (const CFileItem &fileItem, CTextureDetails &details, CStreamDetails *pStreamDetails, int64_t pos)
 
static bool GetFileStreamDetails (CFileItem *pItem)
 Open the item pointed to by pItem and extract streamdetails. More...
 
static bool DemuxerToStreamDetails (std::shared_ptr< CDVDInputStream > pInputStream, CDVDDemux *pDemux, CStreamDetails &details, const std::string &path="")
 
static bool DemuxerToStreamDetails (std::shared_ptr< CDVDInputStream > pInputStream, CDVDDemux *pDemuxer, const std::vector< CStreamDetailSubtitle > &subs, CStreamDetails &details)
 Probe the file's internal and external streams and store the info in the StreamDetails parameter. More...
 
static bool GetFileDuration (const std::string &path, int &duration)
 
static bool AddExternalSubtitleToDetails (const std::string &path, CStreamDetails &details, const std::string &filename, const std::string &subfilename="")
 Probe the streams of an external subtitle file and store the info in the StreamDetails parameter. More...
 

Member Function Documentation

◆ AddExternalSubtitleToDetails()

bool CDVDFileInfo::AddExternalSubtitleToDetails ( const std::string &  path,
CStreamDetails &  details,
const std::string &  filename,
const std::string &  subfilename = "" 
)
static

Probe the streams of an external subtitle file and store the info in the StreamDetails parameter.

Parameters
[out]detailsThe external subtitle file's StreamDetails.

◆ DemuxerToStreamDetails() [1/2]

bool CDVDFileInfo::DemuxerToStreamDetails ( std::shared_ptr< CDVDInputStream >  pInputStream,
CDVDDemux *  pDemux,
CStreamDetails &  details,
const std::string &  path = "" 
)
static

◆ DemuxerToStreamDetails() [2/2]

bool CDVDFileInfo::DemuxerToStreamDetails ( std::shared_ptr< CDVDInputStream >  pInputStream,
CDVDDemux *  pDemuxer,
const std::vector< CStreamDetailSubtitle > &  subs,
CStreamDetails &  details 
)
static

Probe the file's internal and external streams and store the info in the StreamDetails parameter.

Parameters
[out]detailsThe file's StreamDetails consisting of internal streams and external subtitle streams.

◆ ExtractThumb()

bool CDVDFileInfo::ExtractThumb ( const CFileItem &  fileItem,
CTextureDetails &  details,
CStreamDetails *  pStreamDetails,
int64_t  pos 
)
static

◆ GetFileDuration()

bool CDVDFileInfo::GetFileDuration ( const std::string &  path,
int &  duration 
)
static

◆ GetFileStreamDetails()

bool CDVDFileInfo::GetFileStreamDetails ( CFileItem *  pItem)
static

Open the item pointed to by pItem and extract streamdetails.

Returns
true if the stream details have changed

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