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

📄 elements.h

📁 Mobile IP VCEG的信道模拟程序
💻 H
字号:
/*!
 *
 *  \file	elements.h
 *	\brief	Header file for elements in H.26L streams
 *	\date	6.10.2000
 *	\version	
 *			1.0
 *
 *  \author	Sebastian Purreiter     <sebastian.purreiter@mch.siemens.de>
 *
 *			Siemens AG, Information and Communication Mobile
 *			P.O.Box 80 17 07
 *			D-81617 Munich, Germany
 */

#ifndef _ELEMENTS_H_
#define _ELEMENTS_H_

#include "global.h"

/*!  
 *	definition of H.26L syntaxelements
 *  order of elements follow dependencies for picture reconstruction
 */
/*!
 * \brief	Assignment of old TYPE or 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
 *	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 MAXPARTITIONMODES	1	/*!< maximum possible partition modes as defined in assignSE2partition[][] */	

/*!
 *	\brief	lookup-table to assign different elements to partition
 *
 *  \note	here we defined up to 6 different partitions similar to
 *			document Q15-k-18 described in the PROGFRAMEMODE.
 *			The Sliceheader contains the PSYNC information. \par
 *		
 *			Elements inside a partition are not ordered. They are
 *			ordered by occurence in the stream.
 *			Assumption: Only partitionlosses are considered. \par
 *		
 *			The texture elements luminance and chrominance are
 *			not ordered in the progressive form
 *			This may be changed in image.c \par
 *
 *			We also defined the proposed internet partition mode
 *			of Stephan Wenger here. To select the desired mode
 *			uncomment one of the two following lines. \par
 *
 *	-IMPORTANT:
 *			Picture- or Sliceheaders must be assigned to partition 0. \par
 *			Furthermore partitions must follow syntax dependencies as
 *			outlined in document Q15-J-23.
 */


// A note on this table:
//
// While the assignment of values in enum data types is specified in C, it is not
// very ood style to have an "elementnumber", not even as a comment.  
// 
// Hence a copy of the relevant structure from global.h here
/*
typedef enum {
 0	SE_HEADER,	
 1	SE_PTYPE,
 2	SE_MBTYPE,
 3	SE_REFFRAME,
 4	SE_INTRAPREDMODE,
 5	SE_MVD,
 6	SE_CBP_INTRA,
 7	SE_LUM_DC_INTRA,
 8	SE_CHR_DC_INTRA,
 9	SE_LUM_AC_INTRA,
10	SE_CHR_AC_INTRA,
11	SE_CBP_INTER,
12	SE_LUM_DC_INTER,
13	SE_CHR_DC_INTER,
14	SE_LUM_AC_INTER,
15	SE_CHR_AC_INTER,
16	SE_BFRAME,
17	SE_EOS,
18	SE_MAX_ELEMENTS	*/ /* number of maximum syntax elements */

/*} SE_type;*/				/* substituting the definitions in element.h */


static int assignSE2partition[][SE_MAX_ELEMENTS] = 
{
	// 0  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17		// elementnumber (no not uncomment)
	{  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },		/*!< all elements in one partition no data partitioning */
};																	
																					
#endif

⌨️ 快捷键说明

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