www.pudn.com > AvsVideoCodec.rar > elements.h


/* 
***************************************************************************** 
* COPYRIGHT AND WARRANTY INFORMATION 
* 
* Copyright 2003, Advanced Audio Video Coding Standard, Part II 
* 
* DISCLAIMER OF WARRANTY 
* 
* The contents of this file are subject to the Mozilla Public License 
* Version 1.1 (the "License"); you may not use this file except in 
* compliance with the License. You may obtain a copy of the License at 
* http://www.mozilla.org/MPL/ 
* 
* Software distributed under the License is distributed on an "AS IS" 
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the 
* License for the specific language governing rights and limitations under 
* the License. 
*                      
* THIS IS NOT A GRANT OF PATENT RIGHTS - SEE THE AVS PATENT POLICY. 
* The AVS Working Group doesn't represent or warrant that the programs 
* furnished here under 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 for standardization procedure is available at  
* AVS Web site http://www.avs.org.cn. Patent Licensing is outside 
* of AVS Working Group. 
* 
* The Original Code is Reference Software for China National Standard  
* GB/T 20090.2-2006 (short for AVS-P2 or AVS Video) at version RM52J. 
* 
* The Initial Developer of the Original Code is Video subgroup of AVS 
* Workinggroup (Audio and Video coding Standard Working Group of China). 
* Contributors:   Guoping Li,    Siwei Ma,    Jian Lou,    Qiang Wang ,  
*   Jianwen Chen,Haiwu Zhao,  Xiaozhen Zheng, Junhao Zheng, Zhiming Wang 
*  
****************************************************************************** 
*/ 
 
 
 
/* 
************************************************************************************* 
* File name: elements.h 
* Function: Header file for elements in AVS streams 
* 
************************************************************************************* 
*/ 
 
 
 
 
#ifndef _ELEMENTS_H_ 
#define _ELEMENTS_H_ 
 
/*! 
 *  definition of AVS syntaxelements 
 *  order of elements follow dependencies for picture reconstruction 
 */ 
/*! 
 * \brief   Assignment of old TYPE partition elements to new 
 *          elements 
 * 
 *  old element     | new elements 
 *  ----------------+------------------------------------------------------------------- 
 *  TYPE_HEADER     | SE_HEADER, SE_PTYPE 
 *  TYPE_MBHEADER   | SE_MBTYPE, SE_REFFRAME, SE_INTRAPREDMODE 
 *  TYPE_MVD        | SE_MVD 
 *  TYPE_CBP        | SE_CBP_INTRA, SE_CBP_INTER 
 *  SE_DELTA_QUANT_INTER 
 *  SE_DELTA_QUANT_INTRA 
 *  TYPE_COEFF_Y    | SE_LUM_DC_INTRA, SE_LUM_AC_INTRA, SE_LUM_DC_INTER, SE_LUM_AC_INTER 
 *  TYPE_2x2DC      | SE_CHR_DC_INTRA, SE_CHR_DC_INTER 
 *  TYPE_COEFF_C    | SE_CHR_AC_INTRA, SE_CHR_AC_INTER 
 *  TYPE_EOS        | SE_EOS 
*/ 
 
#define SE_HEADER           0 
#define SE_PTYPE            1 
#define SE_MBTYPE           2 
#define SE_REFFRAME         3 
#define SE_INTRAPREDMODE    4 
#define SE_MVD              5 
#define SE_CBP_INTRA        6 
#define SE_LUM_DC_INTRA     7 
#define SE_CHR_DC_INTRA     8 
#define SE_LUM_AC_INTRA     9 
#define SE_CHR_AC_INTRA     10 
#define SE_CBP_INTER        11 
#define SE_LUM_DC_INTER     12 
#define SE_CHR_DC_INTER     13 
#define SE_LUM_AC_INTER     14 
#define SE_CHR_AC_INTER     15 
#define SE_DELTA_QUANT_INTER      16 
#define SE_DELTA_QUANT_INTRA      17 
#define SE_BFRAME           18 
#define SE_EOS              19 
#define SE_MAX_ELEMENTS     20 
#endif