- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
huffman.h
资源名称:VC++视频传输.rar [点击查看]
上传用户:hxb_1234
上传日期:2010-03-30
资源大小:8328k
文件大小:1k
源码类别:
VC书籍
开发平台:
Visual C++
- /********************************************************************** * MPEG/audio 编码/解码软件 * * VERSION 4.1 * *********************************************************************/ #define HUFFBITS unsigned long int #define HTN 34 #define MXOFF 250 struct huffcodetab { char tablename[3]; /*字符, 包含 table_description */ unsigned int xlen; unsigned int ylen; unsigned int linbits; /* linbits 数目 */ unsigned int linmax; /*存储在linbits中的最大数目 */ int ref; /*a positive value indicates a reference*/ HUFFBITS *table; /*指向array[xlen][ylen]的指针 */ unsigned char *hlen; /*指向 array[xlen][ylen]的指针 */ unsigned char(*val)[2];/*解码树 */ unsigned int treelen; /*解码树长度 */ }; extern struct huffcodetab ht[HTN];/* 全局内存块 */ /* 所有huffcodtable headers的数组 */ /* 0..31 Huffman code table 0..31 */ /* 32,33 count1-tables */ extern int read_decoder_table(FILE *); extern int huffman_decoder(struct huffcodetab *, int *, int*, int*, int*);