Pression
1.0.0
Compressor, decompressor, uploader and downloader plugins
|
A C++ class to handle one decompressor plugin instance. More...
#include <decompressor.h>
Public Member Functions | |
PRESSION_API | Decompressor () |
Construct a new, invalid decompressor instance. More... | |
PRESSION_API | Decompressor (PluginRegistry &from, const uint32_t name) |
Construct a new decompressor instance. More... | |
virtual PRESSION_API | ~Decompressor () |
Destruct this decompressor. More... | |
PRESSION_API bool | isGood () const |
operator bool_t () const | |
bool | operator! () const |
PRESSION_API bool | uses (const uint32_t name) const |
PRESSION_API const EqCompressorInfo & | getInfo () const |
PRESSION_API bool | setup (PluginRegistry &from, const uint32_t name) |
Set up a new, named decompressor instance. More... | |
PRESSION_API void | clear () |
Reset to EQ_COMPRESSOR_NONE. More... | |
PRESSION_API void | decompress (const void *const *in, const uint64_t *const inSizes, const unsigned numInputs, void *const out, uint64_t outDim[2]) |
Decompress one-dimensional data. More... | |
PRESSION_API bool | decompress (const CompressorResult &input, void *const out, uint64_t pvpOut[4], const uint64_t flags) |
Decompress two-dimensional data. More... | |
PRESSION_API void | decompress (const void *const *in, const uint64_t *const inSizes, const unsigned numInputs, void *const out, uint64_t pvpOut[4], const uint64_t flags) LB_DEPRECATED |
A C++ class to handle one decompressor plugin instance.
Example:
Definition at line 36 of file decompressor.h.
PRESSION_API pression::Decompressor::Decompressor | ( | ) |
Construct a new, invalid decompressor instance.
PRESSION_API pression::Decompressor::Decompressor | ( | PluginRegistry & | from, |
const uint32_t | name | ||
) |
Construct a new decompressor instance.
from | the plugin registry. |
name | the name of the decompressor. |
|
virtual |
Destruct this decompressor.
PRESSION_API void pression::Decompressor::clear | ( | ) |
Reset to EQ_COMPRESSOR_NONE.
PRESSION_API void pression::Decompressor::decompress | ( | const void *const * | in, |
const uint64_t *const | inSizes, | ||
const unsigned | numInputs, | ||
void *const | out, | ||
uint64_t | outDim[2] | ||
) |
Decompress one-dimensional data.
in | the pointer to an array of input data pointers |
inSizes | the array of input data sizes in bytes |
numInputs | the number of input data elements |
out | the pointer to a pre-allocated buffer for the uncompressed output result. |
outDim | the dimensions of the output data. |
PRESSION_API bool pression::Decompressor::decompress | ( | const CompressorResult & | input, |
void *const | out, | ||
uint64_t | pvpOut[4], | ||
const uint64_t | flags | ||
) |
Decompress two-dimensional data.
The output is not modified on error.
input | the compressed data |
out | the pointer to a pre-allocated buffer for the uncompressed output result. |
pvpOut | the dimensions of the output data. |
flags | capability flags for the decompression. |
PRESSION_API const EqCompressorInfo& pression::Decompressor::getInfo | ( | ) | const |
PRESSION_API bool pression::Decompressor::isGood | ( | ) | const |
Referenced by operator bool_t(), and operator!().
|
inline |
Definition at line 63 of file decompressor.h.
References isGood().
|
inline |
Definition at line 66 of file decompressor.h.
References isGood().
PRESSION_API bool pression::Decompressor::setup | ( | PluginRegistry & | from, |
const uint32_t | name | ||
) |
Set up a new, named decompressor instance.
from | the plugin registry. |
name | the name of the decompressor. |
PRESSION_API bool pression::Decompressor::uses | ( | const uint32_t | name | ) | const |