标题: 用blackfin BF533,DCT& IDCT fast algorithm for image processing.. [打印本页] 作者: ccrystal 时间: 2005-3-4 12:14 标题: 用blackfin BF533,DCT& IDCT fast algorithm for image processing..
我是学生, 现在在实习,现在的任务是 Use C to write Fast DCT and inverse DCT algorithm to process the image... (chen's algorithm)
可是我是1个多月前才开始学DSP, 老实说拉, 还不是很会。我现在又那个fast algorithm in asm, 需要convert to C.
那个 chen's algorithm,还不是很明白,也找不到相关的资料, 希望大家帮忙!!!感激不经啊!!
这个是 FUNCTIONAL DESCRIPTION
The image input program demonstrates the initialization of SDRAM memory
and the use of the DMA and PPI to load a stream of image data from the OmniVision camera.
This program utilizes SDRAM memory to store the video data. The program sets up the DMA and PPI configuration registers for input
mode for 8-bit, ITU-656, Stop Mode DMA.
In addition, this program also initializes the OV6630 camera module from OmniVision to output a 8-bit ITU-656 compliant,
YUV4:2:2 image data stream so that we can process a RGB image on our own. Of course, we can program to output raw RGB.
However, bear in mind that the RGB from the camera is in Bayer-filter pattern, so you have perform some interpolation
to get back 3 colors per pixel.
This is the implementation of Chen's algorithm of DCT.
It is based on the separable nature of DCT for multi-dimension. The input matrix is 8x8 real data. First, one dimensional 8-point DCT is calculated for each of the 8 row. the output is stored in a separate matrix after transpose. Then again 8-point DCT is calculated on each row of matrix. The output is again stored in a transpose matrix. This is final output