Idct.h
上传用户:panstart
上传日期:2022-04-12
资源大小:199k
文件大小:2k
- ////////////////////////////////////////////////////////////////////////////
- //
- //
- // Project : VideoNet version 1.1.
- // Description : Peer to Peer Video Conferencing over the LAN.
- // Author : Nagareshwar Y Talekar ( nsry2002@yahoo.co.in)
- // Date : 15-6-2004.
- //
- // This is the modified version of tmndecode (H.263 decoder)
- // written by Karl & Robert.It was in ANSI C. I have converted into C++
- // so that it can be integrated into any windows application. I have
- // removed some of the files which had display and file storing
- // functions.I have removed the unnecessary code and also added some
- // new files..
- // Original library dealt with files. Input & Output , both were files.
- // I have done some major changes so that it can be used for real time
- // decoding process. Now one can use this library for decoding H263 frames.
- //
- //
- // File description :
- // Name : Idct.h
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_IDCT_H__C5DE7F30_6033_11D6_889B_000B2B0F84B6__INCLUDED_)
- #define AFX_IDCT_H__C5DE7F30_6033_11D6_889B_000B2B0F84B6__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "DGlobal.h"
- #define W1 2841 /* 2048*sqrt(2)*cos(1*pi/16) */
- #define W2 2676 /* 2048*sqrt(2)*cos(2*pi/16) */
- #define W3 2408 /* 2048*sqrt(2)*cos(3*pi/16) */
- #define W5 1609 /* 2048*sqrt(2)*cos(5*pi/16) */
- #define W6 1108 /* 2048*sqrt(2)*cos(6*pi/16) */
- #define W7 565 /* 2048*sqrt(2)*cos(7*pi/16) */
- /* global declarations */
- void init_idct ();
- void idct (short *block);
- /* private data */
- static short iclip[1024]; /* clipping table */
- static short *iclp;
- /* private prototypes */
- static void idctrow(short *blk);
- static void idctcol(short *blk);
- #endif // !defined(AFX_IDCT_H__C5DE7F30_6033_11D6_889B_000B2B0F84B6__INCLUDED_)