|
typedef void(* | CompressorGetInfo_t) (EqCompressorInfo *const ) |
|
typedef void *(* | NewCompressor_t) (const unsigned) |
|
typedef void(* | Decompress_t) (const void *const *, const eq_uint64_t *const, const unsigned, void *const, const eq_uint64_t, const bool) |
|
typedef bool(* | IsCompatible_t) (const GLEWContext *) |
|
typedef lunchbox::Bufferb | Result |
|
typedef std::vector< Result * > | Results |
|
|
| Compressor () |
| Construct a new compressor. More...
|
|
virtual void | compress (const void *const inData, const eq_uint64_t nPixels, const bool useAlpha) |
| Compress data. More...
|
|
const Results & | getResults () const |
|
unsigned | getNResults () const |
|
virtual void | download (const GLEWContext *glewContext, const eq_uint64_t inDims[4], const unsigned source, const eq_uint64_t flags, eq_uint64_t outDims[4], void **out) |
| Transfer frame buffer data into main memory. More...
|
|
virtual void | upload (const GLEWContext *glewContext, const void *buffer, const eq_uint64_t inDims[4], const eq_uint64_t flags, const eq_uint64_t outDims[4], const unsigned destination) |
| Transfer data from main memory into GPU memory. More...
|
|
virtual void | startDownload (const GLEWContext *glewContext, const eq_uint64_t inDims[4], const unsigned source, const eq_uint64_t flags) |
| Start transferring frame buffer data into main memory. More...
|
|
virtual void | finishDownload (const GLEWContext *glewContext, const eq_uint64_t inDims[4], const eq_uint64_t flags, eq_uint64_t outDims[4], void **out) |
| Finish transferring frame buffer data into main memory. More...
|
|
|
static void | registerEngine (const Functions &) |
|
|
Results | _results |
| The compressed data.
|
|
unsigned | _nResults |
| Number of elements used in _results.
|
|
Definition at line 35 of file compressor.h.
eq::plugin::Compressor::Compressor |
( |
| ) |
|
Construct a new compressor.
virtual void eq::plugin::Compressor::compress |
( |
const void *const |
inData, |
|
|
const eq_uint64_t |
nPixels, |
|
|
const bool |
useAlpha |
|
) |
| |
|
inlinevirtual |
virtual void eq::plugin::Compressor::download |
( |
const GLEWContext * |
glewContext, |
|
|
const eq_uint64_t |
inDims[4], |
|
|
const unsigned |
source, |
|
|
const eq_uint64_t |
flags, |
|
|
eq_uint64_t |
outDims[4], |
|
|
void ** |
out |
|
) |
| |
|
inlinevirtual |
Transfer frame buffer data into main memory.
- Parameters
-
glewContext | the initialized GLEW context describing corresponding to the current OpenGL context. |
inDims | the dimensions of the input data (x, w, y, h). |
source | texture name to process. |
flags | capability flags for the compression (see description). |
outDims | the dimensions of the output data (see description). |
out | the pointer to the output data. |
Definition at line 96 of file compressor.h.
virtual void eq::plugin::Compressor::finishDownload |
( |
const GLEWContext * |
glewContext, |
|
|
const eq_uint64_t |
inDims[4], |
|
|
const eq_uint64_t |
flags, |
|
|
eq_uint64_t |
outDims[4], |
|
|
void ** |
out |
|
) |
| |
|
inlinevirtual |
Finish transferring frame buffer data into main memory.
- Parameters
-
glewContext | the initialized GLEW context describing corresponding to the current OpenGL context. |
inDims | the dimensions of the input data (x, w, y, h). |
flags | capability flags for the compression (see description). |
outDims | the dimensions of the output data (see description). |
out | the pointer to the output data. |
- Version
- 4
Definition at line 150 of file compressor.h.
unsigned eq::plugin::Compressor::getNResults |
( |
| ) |
const |
|
inline |
const Results& eq::plugin::Compressor::getResults |
( |
| ) |
const |
|
inline |
- Returns
- the vector containing the result data.
Definition at line 80 of file compressor.h.
References _results.
virtual void eq::plugin::Compressor::startDownload |
( |
const GLEWContext * |
glewContext, |
|
|
const eq_uint64_t |
inDims[4], |
|
|
const unsigned |
source, |
|
|
const eq_uint64_t |
flags |
|
) |
| |
|
inlinevirtual |
Start transferring frame buffer data into main memory.
- Parameters
-
glewContext | the initialized GLEW context describing corresponding to the current OpenGL context. |
inDims | the dimensions of the input data (x, w, y, h). |
source | texture name, if EQ_COMPRESSOR_USE_TEXTURE_2D or EQ_COMPRESSOR_USE_TEXTURE_RECT is set. |
flags | capability flags for the compression (see description). |
- Version
- 4
Definition at line 133 of file compressor.h.
virtual void eq::plugin::Compressor::upload |
( |
const GLEWContext * |
glewContext, |
|
|
const void * |
buffer, |
|
|
const eq_uint64_t |
inDims[4], |
|
|
const eq_uint64_t |
flags, |
|
|
const eq_uint64_t |
outDims[4], |
|
|
const unsigned |
destination |
|
) |
| |
|
inlinevirtual |
Transfer data from main memory into GPU memory.
- Parameters
-
glewContext | the initialized GLEW context describing corresponding to the current OpenGL context. |
buffer | the datas input. |
inDims | the dimension of data in the frame buffer. |
flags | capability flags for the compression. |
outDims | the result data size |
destination | the destination texture name. |
Definition at line 114 of file compressor.h.
The documentation for this class was generated from the following file: