This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C66x-DSPlib



英文不专业,DSPLIB中的一FFT库函数的参数:     Offset,    n_max(与N区别?)的意思不懂,新手求教详细解释?  

DSPLIB中的一FFT库函数:

void DSPF_dp_fftDPxDP ( int N,
double * ptr_x,
double * ptr_w,
double * ptr_y,
int n_min,
int offset,
int n_max
)
The benchmark

Parameters:
N length of FFT in complex samples
ptr_x pointer to complex data input
ptr_w pointer to complex twiddle factor
ptr_y pointer to complex output data
n_min should be 4 if N can be represented as Power of 4 else, n_min should be 2
offset index in complex samples of sub-fft from start of main fft
n_max size of main fft in complex samples

  • 我猜想这两个参数是用于把大点FFT拆成小块做的情形:
    比如把4096点拆成4个1024点
    DSPF_dp_fftDPxDP (1024, xx,xx,xx, rad, 0, 4096);
    DSPF_dp_fftDPxDP (1024, xx,xx,xx, rad, 1024, 4096);
    DSPF_dp_fftDPxDP (1024, xx,xx,xx, rad, 2048, 4096);
    DSPF_dp_fftDPxDP (1024, xx,xx,xx, rad, 3072, 4096);
    只是猜测,没有验证过。。。

    如果不是把大点FFT拆成小块做的情形,那么把offset设成0,把n_max设成N就可以,例如:
    DSPF_dp_fftDPxDP (N, &ptr_x_i[0], &ptr_w[0], ptr_y_i, rad, 0, N);

  • @James Li2,

    我想请问一下儿,DSPF_dp_fftDPxDP 和 DSPF_sp_fftSPxSP有什么区别,另外有一个DSPF_dp_fftDPxDP_cn,这个实现的是什么功能?

    谢谢