C语言写2段小程序
来源:百度知道 编辑:UC知道 时间:2024/09/22 11:28:32
MP3按序列播放:开始-显示音乐列表-选择序号-播放-结束
要求写出C语言代码
是基于单片机的,要2段代码,急,谢谢..别管硬件,纯C语言,硬件就是2410开发板.要C程序代码...谢谢,别问了.能怎么样就怎么样,已经给出了流程图了
/* Fast Inverse DCT implemented using Lee's algorithm */
/* Bjorn Wesen 1997 */
#include "mp3dec.h"
/*
The DCT matrix for N values is defined as:
D(i,j) = cos((2*j+1)*i*PI/(2*N))
Lee's fast-DCT algorithm, as used here, needs an 8-value DCT
and an 16-value DCT matrix.
*/
#ifdef USE_DATA
#include "fastsb_A8.h"
#include "fastsb_B8.h"
#include "fastsb_B16.h"
#else
static mpfloat A16[16][16], A8[8][8]; /* DCT matrix */
static mpfloat G16[16][16], G8[8][8]; /* Output butterfly */
static mpfloat H16[16][16], H8[8][8]; /* Scaling */
static mpfloat B16[16][16], B8[8][8]; /* B = G * DCT * H */
#if 0
static mpfloat A32[32][32];
#endif
void matrix_mul16(mpfloat in1[16][16],
mpfloat in2[16][16],
mpfloat out[