Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Coder.h File Reference

#include "CSource.h"

Include dependency graph for Coder.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define ARI_ENC_NORMALIZE(stream)
#define ARI_FLUSH_ENCODER(stream)
#define ARI_INIT_DECODER(stream)
#define ARI_DEC_NORMALIZE(stream)

Enumerations

enum  { TOP = 1 << 24, BOT = 1 << 15 }

Functions

void ariInitEncoder ()
void ariEncodeSymbol ()
void ariShiftEncodeSymbol (UINT SHIFT)
UINT ariGetCurrentCount ()
UINT ariGetCurrentShiftCount (UINT SHIFT)
void ariRemoveSubrange ()

Variables

static struct SUBRANGE SubRange
static DWORD low
static DWORD code
static DWORD range


Define Documentation

#define ARI_DEC_NORMALIZE stream   ) 
 

Value:

{                                         \
    while ((low ^ (low+range)) < TOP || range < BOT &&                      \
            ((range= -low & (BOT-1)),1)) {                                  \
        code=(code << 8) | _PPMD_D_GETC(stream);                            \
        range <<= 8;                        low <<= 8;                      \
    }                                                                       \
}

Definition at line 96 of file Coder.h.

Referenced by DecodeFile().

#define ARI_ENC_NORMALIZE stream   ) 
 

Value:

{                                         \
    while ((low ^ (low+range)) < TOP || range < BOT &&                      \
            ((range= -low & (BOT-1)),1)) {                                  \
        _PPMD_E_PUTC(low >> 24,stream);                                     \
        range <<= 8;                        low <<= 8;                      \
    }                                                                       \
}

Definition at line 69 of file Coder.h.

Referenced by EncodeFile().

#define ARI_FLUSH_ENCODER stream   ) 
 

Value:

{                                         \
    for (UINT i=0;i < 4;i++) {                                              \
        _PPMD_E_PUTC(low >> 24,stream);                 low <<= 8;          \
    }                                                                       \
}

Definition at line 86 of file Coder.h.

Referenced by EncodeFile().

#define ARI_INIT_DECODER stream   ) 
 

Value:

{                                          \
    low=code=0;                             range=DWORD(-1);                \
    for (UINT i=0;i < 4;i++)                                                \
            code=(code << 8) | _PPMD_D_GETC(stream);                        \
}

Definition at line 91 of file Coder.h.

Referenced by DecodeFile().


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
TOP 
BOT 

Definition at line 62 of file Coder.h.


Function Documentation

void ariEncodeSymbol  )  [inline]
 

Definition at line 76 of file Coder.h.

References SUBRANGE::HighCount, low, SUBRANGE::LowCount, range, SUBRANGE::scale, and SubRange.

Referenced by EncodeFile().

UINT ariGetCurrentCount  )  [inline]
 

Definition at line 103 of file Coder.h.

References code, low, range, SUBRANGE::scale, and SubRange.

Referenced by PPM_CONTEXT::decodeSymbol1(), and PPM_CONTEXT::decodeSymbol2().

UINT ariGetCurrentShiftCount UINT  SHIFT  )  [inline]
 

Definition at line 106 of file Coder.h.

References code, low, and range.

Referenced by PPM_CONTEXT::decodeBinSymbol().

void ariInitEncoder  )  [inline]
 

Definition at line 65 of file Coder.h.

References low, and range.

Referenced by EncodeFile().

void ariRemoveSubrange  )  [inline]
 

Definition at line 109 of file Coder.h.

References SUBRANGE::HighCount, low, SUBRANGE::LowCount, range, and SubRange.

Referenced by DecodeFile().

void ariShiftEncodeSymbol UINT  SHIFT  )  [inline]
 

Definition at line 81 of file Coder.h.

References SUBRANGE::HighCount, low, SUBRANGE::LowCount, range, and SubRange.

Referenced by EncodeFile().


Variable Documentation

DWORD code [static]
 

Definition at line 63 of file Coder.h.

DWORD low [static]
 

Definition at line 63 of file Coder.h.

Referenced by ariEncodeSymbol(), ariGetCurrentCount(), ariGetCurrentShiftCount(), ariInitEncoder(), ariRemoveSubrange(), ariShiftEncodeSymbol(), Opie::Ui::OImageEffect::equalize(), Catalog::findDestInTree(), QRegExpEngine::getEscape(), Opie::Ui::OImageEffect::normalize(), SMTPwrapper::start_smtp_tls(), and IMAPwrapper::start_tls().

DWORD range [static]
 

Definition at line 63 of file Coder.h.

Referenced by ariEncodeSymbol(), ariGetCurrentCount(), ariGetCurrentShiftCount(), ariInitEncoder(), ariRemoveSubrange(), ariShiftEncodeSymbol(), ArithClass::Arith_Decode(), ArithClass::Arith_DecodeVal(), Dasher::CDasherViewSquare::CheckForNewRoot(), Dasher::CDasherModel::Make_root(), UnicodeMap::parse(), Dasher::CDasherView::RenderGroups(), FreshStyle::scrollBarMetrics(), LiquidStyle::scrollBarMetrics(), FlatStyle::scrollBarMetrics(), CSoundFile::SetXBassParameters(), and Opietooth2::OTPeer::updateServices().

struct SUBRANGE SubRange [static]
 

Referenced by ariEncodeSymbol(), ariGetCurrentCount(), ariRemoveSubrange(), ariShiftEncodeSymbol(), PPM_CONTEXT::decodeBinSymbol(), PPM_CONTEXT::decodeSymbol1(), PPM_CONTEXT::decodeSymbol2(), PPM_CONTEXT::encodeBinSymbol(), PPM_CONTEXT::encodeSymbol1(), PPM_CONTEXT::encodeSymbol2(), and PPM_CONTEXT::makeEscFreq2().


Generated on Sat Nov 5 16:49:18 2005 for OPIE by  doxygen 1.4.2