⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.c

📁 用于TM1300/PNX1300系列DSP(主要用于视频处理)的各种滤波器源码
💻 C
字号:
/*
 * Copyright (c) 1995,2000 TriMedia Technologies Inc.                  
 *
 * +------------------------------------------------------------------+
 * | This software is furnished under a license and may only be used  |
 * | and copied in accordance with the terms and conditions of  such  |
 * | a license and with the inclusion of this copyright notice. This  |
 * | software or any other copies of this software may not be provided|
 * | or otherwise made available to any other person.  The ownership  |
 * | and title of this software is not transferred.                   |
 * |                                                                  |
 * | The information in this software is subject  to change without   |
 * | any  prior notice and should not be construed as a commitment by |
 * | TriMedia Technologies.                                           |
 * |                                                                  |
 * | this code and information is provided "as is" without any        |
 * | warranty of any kind, either expressed or implied, including but |
 * | not limited to the implied warranties of merchantability and/or  |
 * | fitness for any particular purpose.                              |
 * +------------------------------------------------------------------+
 *
 *  Module name              : main.c    1.2
 *
 *  Last update              : 14:24:09 - 2000/05/12
 *
 *  Description              :
 *
 *  DCT example program:
 *
 *
 * Feb 21, 2000	COD	Added little endian support, input reader,
 *		        compatibility with IDCT, output writer,
 *			more debuggable for customer support
 */
#include <stdlib.h>

extern	void	dct8x8fix(short *restrict, short *restrict);

short	data[64] ;
short	result[64];

main(int argc, char **argv)
{
  int i, j, dataword;

  for (i=0; i<64; i++) {
    scanf("%d", &dataword);
    data[i] = dataword;
  }

  dct8x8fix(data, result);

  for (i=0; i<8; i++) {
    for (j=0; j<8; j++) {
      printf("%6d ", result[i*8+j]);
    }
    printf("\n");
  }
  exit(EXIT_SUCCESS);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -