List of all members.
Public Member Functions |
| CPUCompressor () |
| Construct a new CPU-based compressor.
|
CO_API void | compress (void *const in, const uint64_t inDims[2]) |
| Compress one-dimensional data.
|
CO_API void | compress (void *const in, const uint64_t pvp[4], const eq_uint64_t flags) |
| Compress two-dimensional data.
|
CO_API unsigned | getNumResults () const |
CO_API void | getResult (const unsigned i, void **const out, uint64_t *const outSize) const |
| Get one compressed chunk.
|
CO_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.
|
CO_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) |
| Decompress two-dimensional data.
|
CO_API bool | initCompressor (const uint32_t dataType, const float quality, const bool ignoreMSE=false) |
| Find and init the best compressor in all plugins for the given parameters.
|
Static Public Member Functions |
static CO_API uint32_t | chooseCompressor (const uint32_t tokenType, const float minQuality=1.0f, const bool ignoreMSE=false) |
| Find the best compressor in all plugins for the given parameters.
|
Detailed Description
Definition at line 28 of file cpuCompressor.h.
Member Function Documentation
Find the best compressor in all plugins for the given parameters.
This convenience method searches all compressors in all plugins to find the compressor which matches best the given parameters.
- Parameters:
-
tokenType | the structure of the data to compress. |
minQuality | minimal quality of the compressed data, with 0 = no quality and 1 = full quality, no loss. |
ignoreMSE | the most-significant element of each token can be ignored, typically the alpha channel of an image. |
Compress one-dimensional data.
- Parameters:
-
in | the pointer to the input data. |
inDims | the dimensions of the input data |
Compress two-dimensional data.
- Parameters:
-
in | the pointer to the input data. |
pvp | the dimensions of the input data |
flags | capability flags for the compression |
CO_API void co::CPUCompressor::decompress |
( |
const void *const * |
in, |
|
|
const uint64_t *const |
inSizes, |
|
|
const unsigned |
numInputs, |
|
|
void *const |
out, |
|
|
uint64_t |
outDim[2] |
|
) |
| |
Decompress one-dimensional data.
- Parameters:
-
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. |
CO_API void co::CPUCompressor::decompress |
( |
const void *const * |
in, |
|
|
const uint64_t *const |
inSizes, |
|
|
const unsigned |
numInputs, |
|
|
void *const |
out, |
|
|
uint64_t |
pvpOut[4], |
|
|
const uint64_t |
flags |
|
) |
| |
Decompress two-dimensional data.
- Parameters:
-
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. |
pvpOut | the dimensions of the output data. |
flags | capability flags for the decompression. |
- Returns:
- the number of compressed chunks.
Get one compressed chunk.
- Parameters:
-
i | the result index to return. |
out | the return value to store the result pointer |
outSize | the return value to store the result size in bytes |
Find and init the best compressor in all plugins for the given parameters.
- Parameters:
-
dataType | the structure of the data to compress. |
quality | minimal quality of the compressed data, with 0 = no quality and 1 = full quality, no loss. |
ignoreMSE | the most-significant element of each token can be ignored, typically the alpha channel of an image. |
- Returns:
- true if a compressor was found, false otherwise.
The documentation for this class was generated from the following file: