|
Kodi Docs 20.0
Kodi is an open source media player and entertainment hub.
|
Thumb extractor job class. More...
#include <VideoThumbLoader.h>
Public Member Functions | |
| CThumbExtractor (const CFileItem &item, const std::string &listpath, bool thumb, const std::string &strTarget="", int64_t pos=-1, bool fillStreamDetails=true) | |
| ~CThumbExtractor () override | |
| bool | DoWork () override |
| Work function that extracts thumb. More... | |
| const char * | GetType () const override |
| Function that returns the type of job. More... | |
| bool | operator== (const CJob *job) const override |
Public Member Functions inherited from CJob | |
| CJob () | |
| virtual | ~CJob ()=default |
| Destructor for job objects. More... | |
| virtual bool | ShouldCancel (unsigned int progress, unsigned int total) const |
| Function for longer jobs to report progress and check whether they have been cancelled. More... | |
Public Attributes | |
| std::string | m_target |
| thumbpath More... | |
| std::string | m_listpath |
| path used in fileitem list More... | |
| CFileItem | m_item |
| bool | m_thumb |
| extract thumb? More... | |
| int64_t | m_pos |
| position to extract thumb from More... | |
| bool | m_fillStreamDetails |
| fill in stream details? More... | |
Additional Inherited Members | |
Public Types inherited from CJob | |
| enum | PRIORITY { PRIORITY_LOW_PAUSABLE = 0 , PRIORITY_LOW , PRIORITY_NORMAL , PRIORITY_HIGH , PRIORITY_DEDICATED } |
| Priority levels for jobs, specified by clients when adding jobs to the CJobManager. More... | |
Thumb extractor job class.
,
Used by the CVideoThumbLoader to perform asynchronous generation of thumbs
| CThumbExtractor::CThumbExtractor | ( | const CFileItem & | item, |
| const std::string & | listpath, | ||
| bool | thumb, | ||
| const std::string & | strTarget = "", |
||
| int64_t | pos = -1, |
||
| bool | fillStreamDetails = true |
||
| ) |
|
overridedefault |
Work function that extracts thumb.
Implements CJob.
|
inlineoverridevirtual |
Function that returns the type of job.
CJob subclasses may optionally implement this function to specify the type of job. This is useful for the CJobManager::AddLIFOJob() routine, which preempts similar jobs with the new job.
Reimplemented from CJob.
| bool CThumbExtractor::m_fillStreamDetails |
fill in stream details?
| CFileItem CThumbExtractor::m_item |
| std::string CThumbExtractor::m_listpath |
path used in fileitem list
| int64_t CThumbExtractor::m_pos |
position to extract thumb from
| std::string CThumbExtractor::m_target |
thumbpath
| bool CThumbExtractor::m_thumb |
extract thumb?