ZfpMonitorObject
: Portmonitor plugin for compression and decompression of floating point values using zfp library.
More...
#include </home/runner/work/yarp-documentation/yarp-documentation/yarp/src/portmonitors/depthimage_compression_zfp/zfpPortmonitor.h>
|
int | compress (float *array, float *&compressed, int &zfpsize, int nx, int ny, float tolerance) |
|
int | decompress (float *array, float *&decompressed, int zfpsize, int nx, int ny, float tolerance) |
|
void | resizeF (float *&array, int newSize) |
|
void | resizeV (void *&array, int newSize) |
|
ZfpMonitorObject
: Portmonitor plugin for compression and decompression of floating point values using zfp library.
Definition at line 19 of file zfpPortmonitor.h.
◆ accept()
This will be called when the data reach the portmonitor object.
- Parameters
-
thing | An instance of yarp::os::Thing object which can be used to typecast the data to the correct type. |
- Returns
- returning false will avoid delivering data to an input port or transmitting through the output port
Reimplemented from yarp::os::MonitorObject.
Definition at line 71 of file zfpPortmonitor.cpp.
◆ compress()
int ZfpMonitorObject::compress |
( |
float * |
array, |
|
|
float *& |
compressed, |
|
|
int & |
zfpsize, |
|
|
int |
nx, |
|
|
int |
ny, |
|
|
float |
tolerance |
|
) |
| |
|
protected |
◆ create()
This will be called when the dll is properly loaded by the portmonitor carrier.
- Parameters
-
options | A set of useful information of the current connection which the monitor object is attached. |
- Returns
- Returning false will stop the portmonitor object to procced
Reimplemented from yarp::os::MonitorObject.
Definition at line 32 of file zfpPortmonitor.cpp.
◆ decompress()
int ZfpMonitorObject::decompress |
( |
float * |
array, |
|
|
float *& |
decompressed, |
|
|
int |
zfpsize, |
|
|
int |
nx, |
|
|
int |
ny, |
|
|
float |
tolerance |
|
) |
| |
|
protected |
◆ destroy()
void ZfpMonitorObject::destroy |
( |
void |
| ) |
|
|
overridevirtual |
◆ getparam()
This will be called when the portmonitor carrier parameters are requested via YARP admin port.
- Parameters
-
- Returns
- Returns true of any parameter is available
Reimplemented from yarp::os::MonitorObject.
Definition at line 66 of file zfpPortmonitor.cpp.
◆ resizeF()
void ZfpMonitorObject::resizeF |
( |
float *& |
array, |
|
|
int |
newSize |
|
) |
| |
|
protected |
◆ resizeV()
void ZfpMonitorObject::resizeV |
( |
void *& |
array, |
|
|
int |
newSize |
|
) |
| |
|
protected |
◆ setparam()
This will be called when the portmonitor carrier parameters are set via YARP admin port.
- Parameters
-
- Returns
- Returns true if parameters are correctly set
Reimplemented from yarp::os::MonitorObject.
Definition at line 61 of file zfpPortmonitor.cpp.
◆ update()
After data get accpeted in the accept() callback, an instance of that is given to the update function where the data can be accessed and modified.
- Parameters
-
thing | An instance of yarp::os::Thing object which can be used to typecast the data to the correct type. |
- Returns
- An instance of modified data in form of Thing
Reimplemented from yarp::os::MonitorObject.
Definition at line 93 of file zfpPortmonitor.cpp.
The documentation for this class was generated from the following files: