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

📄 huffman.h

📁 au1200 linux2.6.11 硬件解码mae驱动和maiplayer播放器源码
💻 H
字号:
/*************************************************************************This software module was originally developed by 	Ming-Chieh Lee (mingcl@microsoft.com), Microsoft Corporation	Wei-ge Chen (wchen@microsoft.com), Microsoft Corporation	Bruce Lin (blin@microsoft.com), Microsoft Corporation	Chuang Gu (chuanggu@microsoft.com), Microsoft Corporation	(date: March, 1996)and edited by	Yoshihiro Kikuchi (TOSHIBA CORPORATION)	Takeshi Nagai (TOSHIBA CORPORATION)	Toshiaki Watanabe (TOSHIBA CORPORATION)	Noboru Yamaguchi (TOSHIBA CORPORATION)    Sehoon Son (shson@unitel.co.kr) Samsung AITin the course of development of the MPEG-4 Video (ISO/IEC 14496-2). This software module is an implementation of a part of one or more MPEG-4 Video tools as specified by the MPEG-4 Video. ISO/IEC gives users of the MPEG-4 Video free license to this software module or modifications thereof for use in hardware or software products claiming conformance to the MPEG-4 Video. Those intending to use this software module in hardware or software products are advised that its use may infringe existing patents. The original developer of this software module and his/her company, the subsequent editors and their companies, and ISO/IEC have no liability for use of this software module or modifications thereof in an implementation. Copyright is not released for non MPEG-4 Video conforming products. Microsoft retains full right to use the code for his/her own purpose, assign or donate the code to a third party and to inhibit third parties from using the code for non <MPEG standard> conforming products. This copyright notice must be included in all copies or derivative works. Copyright (c) 1996, 1997.Module Name:		huffman.hAbstract:	Classes for Huffman encode/decode.Revision History:*************************************************************************/#ifndef _HUFFMAN_H_#define _HUFFMAN_H_typedef struct VlcTableTag {    char *pchBits;} VlcTable;#define HUFFMAN_DEC_STRUCT_SIZE         16typedef struct tag_CHuffmanDecoderNode{    Int m_c0End;    Int m_c1End;     Int m_l0NextNodeOrSymbol;    Int m_l1NextNodeOrSymbol;}HUFFMAN_DEC_STRUCT, *PHUFFMAN_DEC_STRUCT, **PPHUFFMAN_DEC_STRUCT __attribute__ ((aligned (32)));#ifdef FAST_LUT_DECODE#define SYM_TAB_LEN 256		// number of elements in symbol table#define SYM_TAB_BITS 8		// log2 of SYM_TAB_LEN#define LUT_EXTRA	1 // used to be 4 but changed the math in the allocation#else#define LUT_EXTRA	0#endif#define MAX_TABLE_SIZE_CBPY                    (38 + LUT_EXTRA)#define MAX_TABLE_SIZE_INTRA_DCY        (33 + LUT_EXTRA)#define MAX_TABLE_SIZE_INTRA_DCC        (33 + LUT_EXTRA)#define MAX_TABLE_SIZE_MBTYPE_BVOP   (24 + LUT_EXTRA)#define MAX_TABLE_SIZE_MCBPC_INTRA   (29 + LUT_EXTRA)#define MAX_TABLE_SIZE_MCBPC_INTER    (41 + LUT_EXTRA)#define MAX_TABLE_SIZE_MV                       (85 + LUT_EXTRA)#define MAX_TABLE_SIZE_DCT                     (123 + LUT_EXTRA)#define MAX_TABLE_SIZE_DCT_INTRA        (123 + LUT_EXTRA)Void loadTable (VlcTable *pVlc, PPHUFFMAN_DEC_STRUCT);//load huffman table from arrayInt decodeSymbol (PPHUFFMAN_DEC_STRUCT); //return one decoded symbol from the attached CInBitStreamVoid CEntropyDecoderSet ();	// create and attach encoders#ifdef USE_BSFASTInt decodeSymbol_WithFastBS(PPHUFFMAN_DEC_STRUCT pPHD,  UInt cbits, UInt *pbitsused);#endif#ifdef DUAL_MODEPPHUFFMAN_DEC_STRUCT realloc (Int lOldSize,Int lNewSize, PPHUFFMAN_DEC_STRUCT);#endif#endif

⌨️ 快捷键说明

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