xbmc
Public Member Functions | Public Attributes | List of all members
CThumbExtractor Class Reference

Thumb extractor job class. More...

#include <VideoThumbLoader.h>

Inheritance diagram for CThumbExtractor:
Inheritance graph
[legend]
Collaboration diagram for CThumbExtractor:
Collaboration graph
[legend]

Public Member Functions

 CThumbExtractor (const CFileItem &item, const std::string &listpath, bool thumb, const std::string &strTarget="", int64_t pos=-1, bool fillStreamDetails=true)
 
bool DoWork () override
 Work function that extracts thumb.
 
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
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
 
std::string m_listpath
 path used in fileitem list
 
CFileItem m_item
 
bool m_thumb
 extract thumb?
 
int64_t m_pos
 position to extract thumb from
 
bool m_fillStreamDetails
 fill in stream details?
 

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...
 

Detailed Description

Thumb extractor job class.

, Used by the CVideoThumbLoader to perform asynchronous generation of thumbs

See also
CVideoThumbLoader and CJob

Member Function Documentation

◆ GetType()

const char* CThumbExtractor::GetType ( ) const
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.

Returns
a unique character string describing the job.
See also
CJobManager

Reimplemented from CJob.


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