www.pudn.com > wm2.5.zip > main.h


 
/* 
*********************************************************************** 
* COPYRIGHT AND WARRANTY INFORMATION 
* 
* Copyright 2004, Advanced Audio Video Coding Standard, Part II 
* 
* DISCLAIMER OF WARRANTY 
* 
* These software programs are available to the users without any 
* license fee or royalty on an "as is" basis. The AVS disclaims 
* any and all warranties, whether express, implied, or statutory, 
* including any implied warranties of merchantability or of fitness 
* for a particular purpose. In no event shall the contributors or  
* the AVS be liable for any incidental, punitive, or consequential 
* damages of any kind whatsoever arising from the use of this program. 
* 
* This disclaimer of warranty extends to the user of this program 
* and user's customers, employees, agents, transferees, successors, 
* and assigns. 
* 
* The AVS does not represent or warrant that the program furnished 
* hereunder are free of infringement of any third-party patents. 
* Commercial implementations of AVS, including shareware, may be 
* subject to royalty fees to patent holders. Information regarding 
* the AVS patent policy is available from the AVS Web site at 
* http://www.avs.org.cn 
* 
* THIS IS NOT A GRANT OF PATENT RIGHTS - SEE THE AVS PATENT POLICY. 
************************************************************************ 
*/ 
 
 
#ifndef _MAIN_H_ 
#define _MAIN_H_ 
 
static 	FILE *pInFile; 
static	FILE *pOutFile; 
static  FILE *pConfig; 
static  int   g_iKeyFrame; 
static  int   g_iFrameNum; 
static  Byte *org_yuv_buffer; 
 
void main(int argc, char *argv[]); 
 
static void Configure(int argc, char *argv[]); 
static void Init_Frame_Buffer(void); 
static void Free_Frame_Buffer(void); 
static void Get_Mem2D(Byte ***array2D, int rows, int columns); 
static void Get_Mem3D(Byte ****array3D, int frames, int rows, int columns); 
static void Get_Mem2D_Int(int ***array2D, int rows, int columns); 
static void free_mem3D(Byte ***array3D, int frames); 
static void free_mem2D(Byte **array2D); 
static void free_mem2Dint(int **array2D); 
static void Read_One_Frame(int frame_no); 
static void Update_Buffer(void); 
static void Find_SNR(int frame_num); 
static void Init_Global_Variable(void); 
static void Write_Reconstructed_Image(void); 
static void error(char *text, int code); 
char *GetConfigFileContent (char *Filename); 
void ParseContent (char *buf, int bufsize); 
int ParameterNameToMapIndex (char *s); 
void get_mem3Dint(int ****array3D, int frames, int rows, int columns); 
void get_mem2Dint(int ***array2D, int rows, int columns); 
 
#endif //_MAIN_H_