ffmpeg做fft
来源:互联网 发布:网络推广绩效考核指标 编辑:程序博客网 时间:2024/06/04 17:58
#define inline _inline#include <math.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include "libavcodec/fft.h"int main(){ float a[8] = { 0, 1, 2, 3, 4, 5, 6, 7 }; FFTComplex *tab; FFTContext s; int i; int do_inverse = 0; int fft_nbits = 3, fft_size; fft_size = 1 << fft_nbits; tab = av_malloc_array(fft_size, sizeof(FFTComplex)); if (!(tab)) goto cleanup; ff_fft_init(&s, fft_nbits, do_inverse); for (i = 0; i < fft_size; i++) { tab[i].re = a[i]; tab[i].im = 0; } s.fft_permute(&s, tab); s.fft_calc(&s, tab); ff_fft_end(&s); for (i = 0; i < fft_size; i++) { printf("%f %fi\n", tab[i].re, tab[i].im); } cleanup: av_free(tab); return 0;}
阅读全文
0 0
- ffmpeg做fft
- 关于MATLAB 做FFT的两个问题
- ffmpeg做hls切片
- FFT
- "fft"
- FFT
- fft
- FFT
- fft
- FFT
- FFT
- FFT
- FFT
- fft
- FFT
- FFT
- fft
- FFT
- c++运算符重载
- vue03
- DevExpress使用的过期版本解决方法
- IDEA快捷键
- win7下启动docker容器的访问地址和SSH连接docker虚拟环境的方法
- ffmpeg做fft
- msql数据导入导出
- 慕课网AngularJS实战讲解视频笔记
- 使用cJSON解析JSON字符串
- 微信小程序的日期选择器
- 【技术案例】双目摄像头数据采集
- LeetCode 90. Subsets II
- vue 单文件组件 *.vue 组件
- 黄岛区科技服务平台——为企业服务