www.pudn.com > JM60.ZIP > global.h


/* 
*********************************************************************** 
* COPYRIGHT AND WARRANTY INFORMATION 
* 
* Copyright 2001, International Telecommunications Union, Geneva 
* 
* DISCLAIMER OF WARRANTY 
* 
* These software programs are available to the user without any 
* license fee or royalty on an "as is" basis. The ITU 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 
* contributor or the ITU be liable for any incidental, punitive, or 
* consequential damages of any kind whatsoever arising from the 
* use of these programs. 
* 
* This disclaimer of warranty extends to the user of these programs 
* and user's customers, employees, agents, transferees, successors, 
* and assigns. 
* 
* The ITU does not represent or warrant that the programs furnished 
* hereunder are free of infringement of any third-party patents. 
* Commercial implementations of ITU-T Recommendations, including 
* shareware, may be subject to royalty fees to patent holders. 
* Information regarding the ITU-T patent policy is available from 
* the ITU Web site at http://www.itu.int. 
* 
* THIS IS NOT A GRANT OF PATENT RIGHTS - SEE THE ITU-T PATENT POLICY. 
************************************************************************ 
*/ 
 
/*! 
 ************************************************************************ 
 *  \file 
 *     global.h 
 *  \brief 
 *     global definitions for for H.26L decoder. 
 *  \author 
 *     Copyright (C) 1999  Telenor Satellite Services,Norway 
 *                         Ericsson Radio Systems, Sweden 
 * 
 *     Inge Lille-Langøy                
 * 
 *     Telenor Satellite Services 
 *     Keysers gt.13                       tel.:   +47 23 13 86 98 
 *     N-0130 Oslo,Norway                  fax.:   +47 22 77 79 80 
 * 
 *     Rickard Sjoberg                  
 * 
 *     Ericsson Radio Systems 
 *     KI/ERA/T/VV 
 *     164 80 Stockholm, Sweden 
 * 
 ************************************************************************ 
 */ 
#ifndef _GLOBAL_H_ 
#define _GLOBAL_H_ 
 
#include                               //!< for FILE 
#include "defines.h" 
#include "parsetcommon.h" 
 
#ifdef WIN32 
  #define  snprintf _snprintf 
#endif 
 
 
typedef unsigned char   byte;                   //!<  8 bit unsigned 
typedef int             int32; 
typedef unsigned int    u_int32; 
 
unsigned int toprefpoc[MAX_REFERENCE_PICTURES]; 
unsigned int bottomrefpoc[MAX_REFERENCE_PICTURES]; 
 
pic_parameter_set_rbsp_t *active_pps; 
seq_parameter_set_rbsp_t *active_sps; 
 
// global picture format dependend buffers, mem allocation in decod.c ****************** 
int  **refFrArr;                                //!< Array for reference frames of each block 
byte **imgY;                                    //!< array for the decoded luma component 
byte **imgY_pf;                                 //!< Post filter luma image 
byte ***imgUV;                                  //!< array for the chroma component 
byte ***imgUV_pf;                               //!< Post filter luma image 
 
int   **moving_block;           //