| 31 | |
| 32 | |
| 33 | AGCTask::AGCTask( |
| 34 | const SUCOMPLEX *data, |
| 35 | SUCOMPLEX *destination, |
| 36 | size_t length, |
| 37 | SUFLOAT tau, |
| 38 | QObject *parent) : |
| 39 | Suscan::CancellableTask(parent) |
| 40 | { |
| 41 | struct su_agc_params agc_params = su_agc_params_INITIALIZER; |
| 42 | |
| 43 | agc_params.fast_rise_t = tau * SIGDIGGER_AGC_FAST_RISE_FRAC; |
| 44 | agc_params.fast_fall_t = tau * SIGDIGGER_AGC_FAST_FALL_FRAC; |
| 45 | agc_params.slow_rise_t = tau * SIGDIGGER_AGC_SLOW_RISE_FRAC; |
| 46 | agc_params.slow_fall_t = tau * SIGDIGGER_AGC_SLOW_FALL_FRAC; |
| 47 | agc_params.hang_max = tau * SIGDIGGER_AGC_HANG_MAX_FRAC; |
| 48 | |
| 49 | this->origin = data; |
| 50 | this->destination = destination; |
| 51 | this->length = length; |
| 52 | |
| 53 | SU_ATTEMPT(su_agc_init(&this->agc, &agc_params)); |
| 54 | |
| 55 | this->agcInitialized = true; |
| 56 | |
| 57 | this->setProgress(0); |
| 58 | this->setStatus("Processing..."); |
| 59 | } |
| 60 | |
| 61 | bool |
| 62 | AGCTask::work(void) |
nothing calls this directly
no test coverage detected