Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Classes | Macros | Typedefs | Enumerations | Functions
ftzopen.h File Reference
#include <ft2build.h>

Go to the source code of this file.

Classes

struct  FT_LzwStateRec_
 

Macros

#define FT_LZW_IN_BUFF_SIZE   64
 
#define FT_LZW_DEFAULT_STACK_SIZE   64
 
#define LZW_INIT_BITS   9
 
#define LZW_MAX_BITS   16
 
#define LZW_CLEAR   256
 
#define LZW_FIRST   257
 
#define LZW_BIT_MASK   0x1f
 
#define LZW_BLOCK_MASK   0x80
 
#define LZW_MASK(n)   ( ( 1U << (n) ) - 1U )
 

Typedefs

typedef enum FT_LzwPhase_ FT_LzwPhase
 
typedef struct FT_LzwStateRec_ FT_LzwStateRec
 
typedef struct FT_LzwStateRec_FT_LzwState
 

Enumerations

enum  FT_LzwPhase_ { FT_LZW_PHASE_START = 0, FT_LZW_PHASE_CODE, FT_LZW_PHASE_STACK, FT_LZW_PHASE_EOF }
 

Functions

 ft_lzwstate_init (FT_LzwState state, FT_Stream source)
 
 ft_lzwstate_done (FT_LzwState state)
 
 ft_lzwstate_reset (FT_LzwState state)
 
 ft_lzwstate_io (FT_LzwState state, FT_Byte *buffer, FT_ULong out_size)
 

Macro Definition Documentation

◆ FT_LZW_DEFAULT_STACK_SIZE

#define FT_LZW_DEFAULT_STACK_SIZE   64

Definition at line 36 of file ftzopen.h.

◆ FT_LZW_IN_BUFF_SIZE

#define FT_LZW_IN_BUFF_SIZE   64

Definition at line 35 of file ftzopen.h.

◆ LZW_BIT_MASK

#define LZW_BIT_MASK   0x1f

Definition at line 44 of file ftzopen.h.

Referenced by ft_lzwstate_io().

◆ LZW_BLOCK_MASK

#define LZW_BLOCK_MASK   0x80

Definition at line 45 of file ftzopen.h.

Referenced by ft_lzwstate_io().

◆ LZW_CLEAR

#define LZW_CLEAR   256

Definition at line 41 of file ftzopen.h.

Referenced by ft_lzwstate_io().

◆ LZW_FIRST

#define LZW_FIRST   257

Definition at line 42 of file ftzopen.h.

Referenced by ft_lzwstate_io().

◆ LZW_INIT_BITS

#define LZW_INIT_BITS   9

Definition at line 38 of file ftzopen.h.

Referenced by ft_lzwstate_io(), and ft_lzwstate_reset().

◆ LZW_MASK

#define LZW_MASK (   n)    ( ( 1U << (n) ) - 1U )

Definition at line 46 of file ftzopen.h.

◆ LZW_MAX_BITS

#define LZW_MAX_BITS   16

Definition at line 39 of file ftzopen.h.

Referenced by ft_lzwstate_io().

Typedef Documentation

◆ FT_LzwPhase

typedef enum FT_LzwPhase_ FT_LzwPhase

◆ FT_LzwState

typedef struct FT_LzwStateRec_ * FT_LzwState

◆ FT_LzwStateRec

Enumeration Type Documentation

◆ FT_LzwPhase_

Enumerator
FT_LZW_PHASE_START 
FT_LZW_PHASE_CODE 
FT_LZW_PHASE_STACK 
FT_LZW_PHASE_EOF 

Definition at line 49 of file ftzopen.h.

Function Documentation

◆ ft_lzwstate_done()

ft_lzwstate_done ( FT_LzwState  state)

Definition at line 219 of file ftzopen.c.

References FT_FREE, ft_lzwstate_reset(), FT_ZERO, and NULL.

◆ ft_lzwstate_init()

ft_lzwstate_init ( FT_LzwState  state,
FT_Stream  source 
)

Definition at line 199 of file ftzopen.c.

References FT_LOCAL_DEF, ft_lzwstate_reset(), FT_ZERO, and NULL.

◆ ft_lzwstate_io()

ft_lzwstate_io ( FT_LzwState  state,
FT_Byte buffer,
FT_ULong  out_size 
)

◆ ft_lzwstate_reset()

ft_lzwstate_reset ( FT_LzwState  state)

Definition at line 185 of file ftzopen.c.

References FT_LOCAL_DEF, FT_LZW_PHASE_START, and LZW_INIT_BITS.

Referenced by ft_lzwstate_done(), and ft_lzwstate_init().