UNIVERS
15.3
UNIVERS base processing software API
|
#include <zqb_gain_control.hpp>
Public Member Functions | |
ZqbGainControl () | |
void | init (const ZqbAbstrTrace &atrace, const ZqbSVOptions &svo) |
void | prepare (const ZqbRealTrace &trace) |
float * | apply (const ZqbRealTrace &trace, float mm[2]=NULL) |
ZqbGainControl () | |
void | init (const ZqbAbstrTrace &atrace, const ZqbSVOptions &svo) |
void | prepare (const ZqbRealTrace &trace) |
float * | apply (const ZqbRealTrace &trace, float mm[2]=NULL) |
Protected Attributes | |
ZqbSVOptions | m_Options |
ZqbRealTrace | m_GainOp |
ZqbRealTrace | m_Result |
Class for gain control operations.
ZqbGainControl::ZqbGainControl | ( | ) |
Create object for gain control.
ZqbGainControl::ZqbGainControl | ( | ) |
Create object for gain control.
float* ZqbGainControl::apply | ( | const ZqbRealTrace & | trace, |
float | mm[2] = NULL |
||
) |
Apply precalculated gain to the given trace. Returns pointer to internal buffer of samples after gain application. Returns min and max sample value after application if it's needed (mm is not NULL).
float* ZqbGainControl::apply | ( | const ZqbRealTrace & | trace, |
float | mm[2] = NULL |
||
) |
Apply precalculated gain to the given trace. Returns pointer to internal buffer of samples after gain application. Returns min and max sample value after application if it's needed (mm is not NULL).
void ZqbGainControl::init | ( | const ZqbAbstrTrace & | atrace, |
const ZqbSVOptions & | svo | ||
) |
Tune the object for gain control over given abstract trace and with given parameters. Should preceed all other operations.
void ZqbGainControl::init | ( | const ZqbAbstrTrace & | atrace, |
const ZqbSVOptions & | svo | ||
) |
Tune the object for gain control over given abstract trace and with given parameters. Should preceed all other operations.
void ZqbGainControl::prepare | ( | const ZqbRealTrace & | trace | ) |
Calculate gain control operator for given trace. Computes gain function which can be applied by apply() method to many traces.
void ZqbGainControl::prepare | ( | const ZqbRealTrace & | trace | ) |
Calculate gain control operator for given trace. Computes gain function which can be applied by apply() method to many traces.
|
protected |
Buffer for precalculated gain for each sample.
|
protected |
Gain control options.
|
protected |
Internal buffer for result of gain application. It's reused by numerous calls to apply().