Evince
Evince is a document viewer capable of displaying multiple and single page document formats like PDF and Postscript.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Ppmd.h File Reference
#include "CpuArch.h"
+ Include dependency graph for Ppmd.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  CPpmd_See
 
struct  CPpmd_State
 

Macros

#define PPMD_INT_BITS   7
 
#define PPMD_PERIOD_BITS   7
 
#define PPMD_BIN_SCALE   (1 << (PPMD_INT_BITS + PPMD_PERIOD_BITS))
 
#define PPMD_GET_MEAN_SPEC(summ, shift, round)   (((summ) + (1 << ((shift) - (round)))) >> (shift))
 
#define PPMD_GET_MEAN(summ)   PPMD_GET_MEAN_SPEC((summ), PPMD_PERIOD_BITS, 2)
 
#define PPMD_UPDATE_PROB_0(prob)   ((prob) + (1 << PPMD_INT_BITS) - PPMD_GET_MEAN(prob))
 
#define PPMD_UPDATE_PROB_1(prob)   ((prob) - PPMD_GET_MEAN(prob))
 
#define PPMD_N1   4
 
#define PPMD_N2   4
 
#define PPMD_N3   4
 
#define PPMD_N4   ((128 + 3 - 1 * PPMD_N1 - 2 * PPMD_N2 - 3 * PPMD_N3) / 4)
 
#define PPMD_NUM_INDEXES   (PPMD_N1 + PPMD_N2 + PPMD_N3 + PPMD_N4)
 
#define Ppmd_See_Update(p)
 
#define PPMD_SetAllBitsIn256Bytes(p)
 

Typedefs

typedef UInt32 CPpmd_State_Ref
 
typedef UInt32 CPpmd_Void_Ref
 
typedef UInt32 CPpmd_Byte_Ref
 

Macro Definition Documentation

#define PPMD_BIN_SCALE   (1 << (PPMD_INT_BITS + PPMD_PERIOD_BITS))

Definition at line 18 of file Ppmd.h.

#define PPMD_GET_MEAN (   summ)    PPMD_GET_MEAN_SPEC((summ), PPMD_PERIOD_BITS, 2)

Definition at line 21 of file Ppmd.h.

#define PPMD_GET_MEAN_SPEC (   summ,
  shift,
  round 
)    (((summ) + (1 << ((shift) - (round)))) >> (shift))

Definition at line 20 of file Ppmd.h.

#define PPMD_INT_BITS   7

Definition at line 16 of file Ppmd.h.

#define PPMD_N1   4

Definition at line 25 of file Ppmd.h.

#define PPMD_N2   4

Definition at line 26 of file Ppmd.h.

#define PPMD_N3   4

Definition at line 27 of file Ppmd.h.

#define PPMD_N4   ((128 + 3 - 1 * PPMD_N1 - 2 * PPMD_N2 - 3 * PPMD_N3) / 4)

Definition at line 28 of file Ppmd.h.

#define PPMD_NUM_INDEXES   (PPMD_N1 + PPMD_N2 + PPMD_N3 + PPMD_N4)

Definition at line 29 of file Ppmd.h.

#define PPMD_PERIOD_BITS   7

Definition at line 17 of file Ppmd.h.

#define Ppmd_See_Update (   p)
Value:
if ((p)->Shift < PPMD_PERIOD_BITS && --(p)->Count == 0) \
{ (p)->Summ <<= 1; (p)->Count = (Byte)(3 << (p)->Shift++); }

Definition at line 42 of file Ppmd.h.

#define PPMD_SetAllBitsIn256Bytes (   p)
Value:
{ size_t z; for (z = 0; z < 256 / sizeof(p[0]); z += 8) { \
p[z+7] = p[z+6] = p[z+5] = p[z+4] = p[z+3] = p[z+2] = p[z+1] = p[z+0] = ~(size_t)0; }}

Definition at line 79 of file Ppmd.h.

#define PPMD_UPDATE_PROB_0 (   prob)    ((prob) + (1 << PPMD_INT_BITS) - PPMD_GET_MEAN(prob))

Definition at line 22 of file Ppmd.h.

#define PPMD_UPDATE_PROB_1 (   prob)    ((prob) - PPMD_GET_MEAN(prob))

Definition at line 23 of file Ppmd.h.

Typedef Documentation

Definition at line 77 of file Ppmd.h.

Definition at line 61 of file Ppmd.h.

Definition at line 69 of file Ppmd.h.