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

#include <DVDFileInfo.h>

Static Public Member Functions

static std::unique_ptr< CTexture > ExtractThumbToTexture (const CFileItem &fileItem, int chapterNumber=0)
 
static bool CanExtract (const CFileItem &fileItem)
 Can a thumbnail image and file stream details be extracted from this file item?
 
static bool IsExtractableLocation (const std::string &path)
 Is path close enough to decode frames from: local, or on the LAN for HTTP and FTP?
 
static bool GetFileStreamDetails (CFileItem *pItem, int listingFlags=0, CStreamDetails *probed=nullptr, unsigned int fileFlags=0)
 Probe the file's streams, look for its external subtitles, and store them in its tag.
 
static void AddExternalSubtitles (CFileItem &item, CStreamDetails streams, int listingFlags=0)
 Store streams probed already in an item's tag, with the item's own external subtitles.
 
static bool GetFileDuration (const std::string &path, int &duration, unsigned int fileFlags=0)
 

Member Function Documentation

◆ AddExternalSubtitles()

void CDVDFileInfo::AddExternalSubtitles ( CFileItem & item,
CStreamDetails streams,
int listingFlags = 0 )
static

Store streams probed already in an item's tag, with the item's own external subtitles.

Parameters
streamsthe streams of the item's file, as GetFileStreamDetails() probed them

◆ CanExtract()

bool CDVDFileInfo::CanExtract ( const CFileItem & fileItem)
static

Can a thumbnail image and file stream details be extracted from this file item?

◆ ExtractThumbToTexture()

std::unique_ptr< CTexture > CDVDFileInfo::ExtractThumbToTexture ( const CFileItem & fileItem,
int chapterNumber = 0 )
static

◆ GetFileDuration()

bool CDVDFileInfo::GetFileDuration ( const std::string & path,
int & duration,
unsigned int fileFlags = 0 )
static
Parameters
fileFlagsas for GetFileStreamDetails()

◆ GetFileStreamDetails()

bool CDVDFileInfo::GetFileStreamDetails ( CFileItem * pItem,
int listingFlags = 0,
CStreamDetails * probed = nullptr,
unsigned int fileFlags = 0 )
static

Probe the file's streams, look for its external subtitles, and store them in its tag.

Open the item pointed to by pItem and extract streamdetails.

Parameters
listingFlagsadded to the flags the video's folder is listed with to look for subtitles
[out]probedif given, the file's own streams, without the external subtitles, which another video of the same file (eg. another episode of it) can be given by AddExternalSubtitles()
fileFlagsadded to the flags (XFILE::READ_*) the file, and each part of a stack, is opened with
Returns
true if the stream details have changed

◆ IsExtractableLocation()

bool CDVDFileInfo::IsExtractableLocation ( const std::string & path)
static

Is path close enough to decode frames from: local, or on the LAN for HTTP and FTP?


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