Lhaz
クラス | 公開型 | 公開メンバ関数 | 公開変数類 | 非公開メンバ関数 | 非公開変数類 | 静的非公開変数類 | 全メンバ一覧
HUFFMAN クラス

#include <chuf.h>

クラス

struct  DECODE
 
struct  ENCODE
 

公開型

enum  HUF_ERROR { ERR_HUF_BROKEN }
 
enum  METHOD {
  LZHUFF0_METHOD_NUM, LZHUFF1_METHOD_NUM, LZHUFF2_METHOD_NUM, LZHUFF3_METHOD_NUM,
  LZHUFF4_METHOD_NUM, LZHUFF5_METHOD_NUM, LZHUFF6_METHOD_NUM, LZHUFF7_METHOD_NUM,
  LARC_METHOD_NUM, LARC5_METHOD_NUM, LARC4_METHOD_NUM, LZHDIRS_METHOD_NUM
}
 

公開メンバ関数

 HUFFMAN (METHOD method, uchar *t, MYFILE &infile, MYFILE &outfile, int dicbit, LONGLONG origsize, LONGLONG compsize, bool *unpackable)
 
LONGLONG GetCompsize (void)
 

公開変数類

DECODE Decode
 
ENCODE Encode
 

非公開メンバ関数

HUFFMANoperator= (const HUFFMAN &)
 
ushort decode_c_dyn (void)
 
ushort decode_c_st0 (void)
 
ushort decode_c_st1 (void)
 
ushort decode_c_lzs (void)
 
ushort decode_c_lz5 (void)
 
ushort decode_p_dyn (void)
 
ushort decode_p_st0 (void)
 
ushort decode_p_st1 (void)
 
ushort decode_p_lzs (void)
 
ushort decode_p_lz5 (void)
 
void decode_start_fix (void)
 
void decode_start_dyn (void)
 
void decode_start_st0 (void)
 
void decode_start_st1 (void)
 
void decode_start_lzs (void)
 
void decode_start_lz5 (void)
 
void fillbuf (uchar)
 
ushort getbits (uchar)
 
void init_getbits (void)
 
void read_pt_len (short nn, short nbit, short i_special)
 
void read_c_len (void)
 
void read_tree_c (void)
 
void read_tree_p (void)
 
void putcode (uchar n, ushort x)
 
void putbits (uchar n, ushort x)
 
void encode_c_dyn (int c)
 
void output_dyn (int code, unsigned int pos)
 
void encode_end_dyn (void)
 
void write_pt_len (short n, short nbit, short i_special)
 
void write_c_len (void)
 
void send_block (void)
 
void output_st1 (int c, uint p)
 
void encode_end_st1 (void)
 
void encode_c (short c)
 
void encode_p (ushort p)
 
void encode_p_st0 (ushort j)
 
void encode_start_fix (void)
 
void ready_made (int method)
 
void encode_start_st1 (void)
 
void start_p_dyn (void)
 

非公開変数類

ucharText
 
MYFILE & Infile
 
MYFILE & Outfile
 
int Dicbit
 
LONGLONG Origsize
 
LONGLONG Compsize
 
boolUnPackable
 

静的非公開変数類

static const int N1 = 286
 
static const int LENFIELD = 4
 
static const int BUFBITS = 16
 
static const int EXTRABITS = 8
 
static DECODE Decodes [9]
 
static ENCODE Encodes [2]
 

列挙型メンバ詳解

列挙値
ERR_HUF_BROKEN 
列挙値
LZHUFF0_METHOD_NUM 
LZHUFF1_METHOD_NUM 
LZHUFF2_METHOD_NUM 
LZHUFF3_METHOD_NUM 
LZHUFF4_METHOD_NUM 
LZHUFF5_METHOD_NUM 
LZHUFF6_METHOD_NUM 
LZHUFF7_METHOD_NUM 
LARC_METHOD_NUM 
LARC5_METHOD_NUM 
LARC4_METHOD_NUM 
LZHDIRS_METHOD_NUM 

構築子と解体子

HUFFMAN::HUFFMAN ( METHOD  method,
uchar t,
MYFILE &  infile,
MYFILE &  outfile,
int  dicbit,
LONGLONG  origsize,
LONGLONG  compsize,
bool unpackable 
)

関数詳解

ushort HUFFMAN::decode_c_dyn ( void  )
private
ushort HUFFMAN::decode_c_lz5 ( void  )
private
ushort HUFFMAN::decode_c_lzs ( void  )
private
ushort HUFFMAN::decode_c_st0 ( void  )
private
ushort HUFFMAN::decode_c_st1 ( void  )
private
ushort HUFFMAN::decode_p_dyn ( void  )
private
ushort HUFFMAN::decode_p_lz5 ( void  )
private
ushort HUFFMAN::decode_p_lzs ( void  )
private
ushort HUFFMAN::decode_p_st0 ( void  )
private
ushort HUFFMAN::decode_p_st1 ( void  )
private
void HUFFMAN::decode_start_dyn ( void  )
private
void HUFFMAN::decode_start_fix ( void  )
private
void HUFFMAN::decode_start_lz5 ( void  )
private
void HUFFMAN::decode_start_lzs ( void  )
private
void HUFFMAN::decode_start_st0 ( void  )
private
void HUFFMAN::decode_start_st1 ( void  )
private
void HUFFMAN::encode_c ( short  c)
private
void HUFFMAN::encode_c_dyn ( int  c)
private
void HUFFMAN::encode_end_dyn ( void  )
private
void HUFFMAN::encode_end_st1 ( void  )
private
void HUFFMAN::encode_p ( ushort  p)
private
void HUFFMAN::encode_p_st0 ( ushort  j)
private
void HUFFMAN::encode_start_fix ( void  )
private
void HUFFMAN::encode_start_st1 ( void  )
private
void HUFFMAN::fillbuf ( uchar  n)
private
ushort HUFFMAN::getbits ( uchar  n)
private
LONGLONG HUFFMAN::GetCompsize ( void  )
inline
void HUFFMAN::init_getbits ( void  )
private
HUFFMAN& HUFFMAN::operator= ( const HUFFMAN )
private
void HUFFMAN::output_dyn ( int  code,
unsigned int  pos 
)
private
void HUFFMAN::output_st1 ( int  c,
uint  p 
)
private
void HUFFMAN::putbits ( uchar  n,
ushort  x 
)
private
void HUFFMAN::putcode ( uchar  n,
ushort  x 
)
private
void HUFFMAN::read_c_len ( void  )
private
void HUFFMAN::read_pt_len ( short  nn,
short  nbit,
short  i_special 
)
private
void HUFFMAN::read_tree_c ( void  )
private
void HUFFMAN::read_tree_p ( void  )
private
void HUFFMAN::ready_made ( int  method)
private
void HUFFMAN::send_block ( void  )
private
void HUFFMAN::start_p_dyn ( void  )
private
void HUFFMAN::write_c_len ( void  )
private
void HUFFMAN::write_pt_len ( short  n,
short  nbit,
short  i_special 
)
private

メンバ詳解

const int HUFFMAN::BUFBITS = 16
staticprivate
LONGLONG HUFFMAN::Compsize
private
DECODE HUFFMAN::Decode
HUFFMAN::DECODE HUFFMAN::Decodes
staticprivate
int HUFFMAN::Dicbit
private
ENCODE HUFFMAN::Encode
HUFFMAN::ENCODE HUFFMAN::Encodes
staticprivate
const int HUFFMAN::EXTRABITS = 8
staticprivate
MYFILE& HUFFMAN::Infile
private
const int HUFFMAN::LENFIELD = 4
staticprivate
const int HUFFMAN::N1 = 286
staticprivate
LONGLONG HUFFMAN::Origsize
private
MYFILE& HUFFMAN::Outfile
private
uchar* HUFFMAN::Text
private
bool* HUFFMAN::UnPackable
private

このクラス詳解は次のファイルから抽出されました: