AC63_BT_SDK/include_lib/media/spectrum/coeff_calculate_api.h

39 lines
957 B
C
Raw Permalink Normal View History

2025-02-18 15:40:42 +08:00
#ifndef COEFF_CALCULATE_API_H
#define COEFF_CALCULATE_API_H
int get_coeff_calculate_buf(int section);
void coeff_calculate_init(void *ptr, int section, int fs);
void bpf_filts(void *ptr, int *in_buf_fc, int *qf);
typedef struct spectrum {
int section;
int fs;
int *SOSMatrix;
int pool[0];
} spec;
#if 0
coeff_calculate.a库说明
bufsize = int get_coeff_calculate_buf(section); //获取buf大小
section
workbuf = malloc(bufsize); //申请内存
coeff_calculate_init(workbuf, section, fs); //初始化
fs:
bpf_filts(workbuf, in_buf, qf); //运行
in_buf fc数据24bit
qfq因子数据24bit
522bitbr23模型SOSMatrix中
#endif
#endif