![]() |
Project Ne10
An Open Optimized Software Library Project for the ARM Architecture
|
Functions | |
void | ne10_fir_sparse_float_c (ne10_fir_sparse_instance_f32_t *S, ne10_float32_t *pSrc, ne10_float32_t *pDst, ne10_float32_t *pScratchIn, ne10_uint32_t blockSize) |
Processing function for the floating-point sparse FIR filter. More... | |
There are separate functions for floating-point data types. The functions operate on blocks of input and output data and each call to the function processes blockSize
samples through the filter. pSrc
and pDst
points to input and output arrays respectively containing blockSize
values.
pTapDelay
which specifies the locations of the non-zero coefficients. This is in addition to the coefficient array b
. The implementation essentially skips the multiplications by zero and leads to an efficient realization. y[n] = b[0] * x[n-pTapDelay[0]] + b[1] * x[n-pTapDelay[1]] + b[2] * x[n-pTapDelay[2]] + ...+ b[numTaps-1] * x[n-pTapDelay[numTaps-1]]
pCoeffs
points to a coefficient array of size numTaps
; pTapDelay
points to an array of nonzero indices and is also of size numTaps
; pState
points to a state array of size maxDelay + blockSize
, where maxDelay
is the largest offset value that is ever used in the pTapDelay
array. Some of the processing functions also require temporary working buffers.*ne10_fir_sparse_instance_f32_t S = {numTaps, 0, pState, pCoeffs, maxDelay, pTapDelay};
void ne10_fir_sparse_float_c | ( | ne10_fir_sparse_instance_f32_t * | S, |
ne10_float32_t * | pSrc, | ||
ne10_float32_t * | pDst, | ||
ne10_float32_t * | pScratchIn, | ||
ne10_uint32_t | blockSize | ||
) |
Processing function for the floating-point sparse FIR filter.
[in] | *S | points to an instance of the floating-point sparse FIR structure. |
[in] | *pSrc | points to the block of input data. |
[out] | *pDst | points to the block of output data |
[in] | *pScratchIn | points to a temporary buffer of size blockSize. |
[in] | blockSize | number of input samples to process per call. |
Definition at line 1439 of file NE10_fir.c.