Kodi Documentation 22.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< CTextureExtractThumbToTexture (const CFileItem &fileItem, int chapterNumber=0)
 
static bool SeekAndDecodeFirstPicture (CDVDDemux &demuxer, CDVDVideoCodec &codec, int videoStream, int64_t seekTo_ms, VideoPicture &picture, int &packetsTried)
 Seek the demuxer to a position and decode the first picture that is not dropped.
 
static bool CanExtract (const CFileItem &fileItem)
 Can a thumbnail image and file stream details be extracted from this file item?
 
static bool GetFileStreamDetails (CFileItem *pItem)
 Open the item pointed to by pItem and extract streamdetails.
 
static bool GetFileDuration (const std::string &path, int &duration)
 

Member Function Documentation

◆ 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 )
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

◆ SeekAndDecodeFirstPicture()

bool CDVDFileInfo::SeekAndDecodeFirstPicture ( CDVDDemux & demuxer,
CDVDVideoCodec & codec,
int videoStream,
int64_t seekTo_ms,
VideoPicture & picture,
int & packetsTried )
static

Seek the demuxer to a position and decode the first picture that is not dropped.

Parameters
seekTo_msposition to seek to, in milliseconds
[out]picturethe decoded picture
[out]packetsTriedincremented once per packet read
Returns
true when a picture was decoded

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