📄 coder.h
字号:
#ifndef CODER_H
#define CODER_H
#include "wavelet.h"
#include <crblib/rungae.h>
void codeWavelet(Wavelet *w,bool forward);
void encodeBands(SubBand *LH,SubBand *HL,SubBand *HH,arithInfo *ari);
void decodeBands(SubBand *LH,SubBand *HL,SubBand *HH,arithInfo *ari);
/*********/
#define NUM_CONTEXTS (8)
#define NUM_UNARY_CONTEXTS (5)
#define NUM_SIGN_CONTEXTS (3)
typedef struct LapInfo
{
rung_t isOn[NUM_CONTEXTS];
rung_t unary[NUM_UNARY_CONTEXTS];
rung_t signs[NUM_SIGN_CONTEXTS];
bool lastRowOn;
} LapInfo;
void encodeRow(uint *inrow,SubBand *sb,arithInfo *ari,LapInfo *li);
uint * decodeRow(SubBand *sb,arithInfo *ari,LapInfo *li);
void LapInfo_Reset(LapInfo *li);
/*********/
#endif // CODER_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -