zerotree.h
来自「wavlet compression on c++ only cods」· C头文件 代码 · 共 40 行
H
40 行
// Copyright (c) 1999 Stephen T. Welstead. All rights reserved.
// File zerotree.h Header for zerotree class
#ifndef ZEROTREE_H
#define ZEROTREE_H
#include "utshort.h"
#define POS 1
#define NEG 2
#define IZ 3
#define ZR 4
#define ZT 5
#define NO_OF_SYMBOLS 5
#define NO_OF_BIT_SYMBOLS 4
#define BIT_POS 1
#define BIT_NEG 2
#define BIT_IZ 3
#define BIT_ZR 0
typedef struct {
unsigned sym_1:2,
sym_2:2,
sym_3:2,
sym_4:2;
} tsymbol_bit_array;
class tzerotree: public tshort_array {
public:
tzerotree (int rows,int cols):tshort_array(rows,cols) {};
tzerotree (int rows,int cols,short init_value):
tshort_array(rows,cols,init_value){};
virtual void mark_parents (int row,int col,short symbol);
virtual void mark_children (int row,int col,int nrows,
int ncols,short symbol);
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?