⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 coder.cpp

📁 wavelet codec there are 34 files with code about the wavelet theory
💻 CPP
字号:
#include <iostream.h>
#include <stdio.h>
#include <math.h>
#include "global.h"
#include "coder.h"
/*---------------------------------------------------------------------------*/

Encoder::Encoder (ostream &out, ostream &log)
{
   bitout   = new BitOut (out, log);
   arith    = new ArithEncoder (*bitout);
   intcoder = new CdeltaEncode (bitout);
}

/*---------------------------------------------------------------------------*/

Encoder::~Encoder ()
{
   delete intcoder;
   delete arith;
   delete bitout;
}

/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/

Decoder::Decoder (istream &in, ostream &log)
{
  bitin    = new BitIn (in, log);
  intcoder = new CdeltaDecode (bitin);
  arith    = NULL;
}

/*---------------------------------------------------------------------------*/

Decoder::~Decoder ()
{
   delete intcoder;
   if (arith != NULL) delete arith;
   delete bitin;
}

/*---------------------------------------------------------------------------*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -