?? block_encode.h
字號:
/******************************************************************************
功能描述:
Implements 9/7 小波變換的實現
******************************************************************************/
/*****************************************************************************/
// 程序: 小波變換
// 版本: V0.0
// 作者: 胡運平
// 最后修改時間 : 12, 5, 2005
/****************************************************************************/
#ifndef BLOCK_ENCODE
#define BLOCK_ENCODE
#define BLOCKLENGTH 16
#define BLOCKWIDTH 16
extern int block_bufferout[BLOCKLENGTH][BLOCKWIDTH];
unsigned char state_data_x[BLOCKLENGTH][BLOCKWIDTH];//符號變量
unsigned char state_data_q[BLOCKLENGTH][BLOCKWIDTH];//顯著性狀態變量
unsigned char state_data_e[BLOCKLENGTH][BLOCKWIDTH];//延遲顯著性狀態變量 表示系數是否是第一次被量值改進,也叫細化信息位
unsigned char state_data_v[BLOCKLENGTH][BLOCKWIDTH];//樣本比特值
unsigned char state_data_pi[BLOCKLENGTH][BLOCKWIDTH];//編碼狀態變量 表示位平面上的比特值是否已經被編碼,也叫訪問信息位
int log2i(int val);
void encode_allsubband(int block_bufferin[BLOCKLENGTH][BLOCKWIDTH],float interleave[LENGTH+8][WIDTH+8]);
void block_encode(int block_bufferin[BLOCKLENGTH][BLOCKWIDTH]);
void init_environment(unsigned int f[BLOCKLENGTH][BLOCKWIDTH],unsigned char
c[BLOCKLENGTH][BLOCKWIDTH],unsigned char state_data_x[BLOCKLENGTH][BLOCKWIDTH]);
unsigned char init_significant(unsigned int f,int orient);
unsigned char init_sign(unsigned int f,unsigned char sign);
unsigned char init_magnitude(unsigned int f,unsigned char sign);
/******************************************************************************
以上是編碼函數,以下是EBCOT的解碼函數。
******************************************************************************/
void decode_allsubband();
void block_decode(int block_bufferout[BLOCKLENGTH][BLOCKWIDTH]);
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -