NMSIS-DSP  Version 1.5.0
NMSIS DSP Software Library

Functions

int32_t riscv_mfcc_tmp_buffer_size (riscv_math_datatype dt, uint32_t nb_samples, uint32_t buf_id, uint32_t use_cfft)
 Calculate required length for the temporary buffer. More...
 

Detailed Description

end of RFFTBuffers group

Function Documentation

◆ riscv_mfcc_tmp_buffer_size()

int32_t riscv_mfcc_tmp_buffer_size ( riscv_math_datatype  dt,
uint32_t  nb_samples,
uint32_t  buf_id,
uint32_t  use_cfft 
)

Calculate required length for the temporary buffer.

Parameters
[in]dtData type of the input data
[in]nb_samplesNumber of samples in the input data
[in]buf_idIdentification for the temporary buffer
[in]use_cfft1 if implementastion uses CFFT, 0 if RFFT
Returns
Length in datatype elements (real numbers) for the temporary buffer
Note
0 means not applicable (temporary buffer not needed)
-1 means error : configuration not supported
The define RISCV_MFCC_USE_CFFT can be checked to know the current MFCC mode (CFFT or RFFT) for the build