List of all members.
Public Member Functions |
CO_API | Compressor () |
| Construct a new compressor.
|
virtual CO_API | ~Compressor () |
| Destruct the compressor.
|
CO_API bool | initCompressor (uint32_t name) |
| Initialize the specified compressor or downloader.
|
CO_API bool | initDecompressor (uint32_t name) |
| Initialize the specified decompressor or uploader.
|
Plugin * | getPlugin () |
uint32_t | getName () const |
virtual CO_API bool | isValid (uint32_t name) const |
CO_API void | reset () |
| Remove all information about the current compressor.
|
CO_API float | getQuality () const |
const CompressorInfo & | getInfo () const |
Protected Member Functions |
Plugin * | _findPlugin (uint32_t name) |
| Find the plugin where located the compressor.
|
| LB_TS_VAR (_thread) |
Protected Attributes |
uint32_t | _name |
| The name of the (de)compressor.
|
Plugin * | _plugin |
| Plugin handling the allocation.
|
void * | _instance |
| The instance of the (de)compressor, can be 0 for decompressor.
|
const CompressorInfo * | _info |
| Info about the current compressor instance.
|
enum co::Compressor::State | _state |
Protected Types |
enum | State { STATE_FREE,
STATE_COMPRESSOR,
STATE_DECOMPRESSOR
} |
| Instance allocation state.
|
Detailed Description
Definition at line 29 of file compressor.h.
Constructor & Destructor Documentation
Construct a new compressor.
Member Function Documentation
Find the plugin where located the compressor.
- Parameters:
-
name | the name of the compressor |
- Returns:
- the information about the current compressor instance.
Definition at line 72 of file compressor.h.
References _info.
- Returns:
- the name of the compressor.
Definition at line 59 of file compressor.h.
References _name.
- Returns:
- the plugin for the current compressor.
Definition at line 56 of file compressor.h.
References _plugin.
- Returns:
- the quality produced by the current compressor instance.
Initialize the specified compressor or downloader.
- Parameters:
-
name | the name of the compressor |
- Returns:
- true on success, false otherwise.
Initialize the specified decompressor or uploader.
- Parameters:
-
name | the name of the compressor |
- Returns:
- true on success, false otherwise.
- Returns:
- true if the compressor is ready for the current compressor name.
Remove all information about the current compressor.
The documentation for this class was generated from the following file: