zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pshrec.c File Reference
#include <ft2build.h>
#include <FT_FREETYPE_H>
#include <FT_INTERNAL_OBJECTS_H>
#include <FT_INTERNAL_DEBUG_H>
#include <FT_INTERNAL_CALC_H>
#include "pshrec.h"
#include "pshalgo.h"
#include "pshnterr.h"

Go to the source code of this file.

Macros

#define FT_COMPONENT   trace_pshrec
 

Functions

static FT_Error ps_dimension_add_counter (PS_Dimension dim, FT_Int hint1, FT_Int hint2, FT_Int hint3, FT_Memory memory)
 
static FT_Error ps_dimension_add_t1stem (PS_Dimension dim, FT_Int pos, FT_Int len, FT_Memory memory, FT_Int *aindex)
 
static void ps_dimension_done (PS_Dimension dimension, FT_Memory memory)
 
static FT_Error ps_dimension_end (PS_Dimension dim, FT_UInt end_point, FT_Memory memory)
 
static void ps_dimension_end_mask (PS_Dimension dim, FT_UInt end_point)
 
static void ps_dimension_init (PS_Dimension dimension)
 
static FT_Error ps_dimension_reset_mask (PS_Dimension dim, FT_UInt end_point, FT_Memory memory)
 
static FT_Error ps_dimension_set_mask_bits (PS_Dimension dim, const FT_Byte *source, FT_UInt source_pos, FT_UInt source_bits, FT_UInt end_point, FT_Memory memory)
 
static FT_Error ps_hint_table_alloc (PS_Hint_Table table, FT_Memory memory, PS_Hint *ahint)
 
static void ps_hint_table_done (PS_Hint_Table table, FT_Memory memory)
 
static FT_Error ps_hint_table_ensure (PS_Hint_Table table, FT_UInt count, FT_Memory memory)
 
static FT_Error ps_hints_close (PS_Hints hints, FT_UInt end_point)
 
 ps_hints_done (PS_Hints hints)
 
 ps_hints_init (PS_Hints hints, FT_Memory memory)
 
static void ps_hints_open (PS_Hints hints, PS_Hint_Type hint_type)
 
static void ps_hints_stem (PS_Hints hints, FT_Int dimension, FT_UInt count, FT_Long *stems)
 
static void ps_hints_t1reset (PS_Hints hints, FT_UInt end_point)
 
static void ps_hints_t1stem3 (PS_Hints hints, FT_Int dimension, FT_Fixed *stems)
 
static void ps_hints_t2counter (PS_Hints hints, FT_UInt bit_count, const FT_Byte *bytes)
 
static void ps_hints_t2mask (PS_Hints hints, FT_UInt end_point, FT_UInt bit_count, const FT_Byte *bytes)
 
static void ps_mask_clear_bit (PS_Mask mask, FT_Int idx)
 
static void ps_mask_done (PS_Mask mask, FT_Memory memory)
 
static FT_Error ps_mask_ensure (PS_Mask mask, FT_UInt count, FT_Memory memory)
 
static FT_Error ps_mask_set_bit (PS_Mask mask, FT_Int idx, FT_Memory memory)
 
static FT_Error ps_mask_table_alloc (PS_Mask_Table table, FT_Memory memory, PS_Mask *amask)
 
static void ps_mask_table_done (PS_Mask_Table table, FT_Memory memory)
 
static FT_Error ps_mask_table_ensure (PS_Mask_Table table, FT_UInt count, FT_Memory memory)
 
static FT_Error ps_mask_table_last (PS_Mask_Table table, FT_Memory memory, PS_Mask *amask)
 
static FT_Error ps_mask_table_merge (PS_Mask_Table table, FT_Int index1, FT_Int index2, FT_Memory memory)
 
static FT_Error ps_mask_table_merge_all (PS_Mask_Table table, FT_Memory memory)
 
static FT_Error ps_mask_table_set_bits (PS_Mask_Table table, const FT_Byte *source, FT_UInt bit_pos, FT_UInt bit_count, FT_Memory memory)
 
static FT_Int ps_mask_table_test_intersect (PS_Mask_Table table, FT_Int index1, FT_Int index2)
 
static FT_Int ps_mask_test_bit (PS_Mask mask, FT_Int idx)
 
 t1_hints_funcs_init (T1_Hints_FuncsRec *funcs)
 
static void t1_hints_open (T1_Hints hints)
 
static void t1_hints_stem (T1_Hints hints, FT_Int dimension, FT_Fixed *coords)
 
 t2_hints_funcs_init (T2_Hints_FuncsRec *funcs)
 
static void t2_hints_open (T2_Hints hints)
 
static void t2_hints_stems (T2_Hints hints, FT_Int dimension, FT_Int count, FT_Fixed *coords)
 

Macro Definition Documentation

#define FT_COMPONENT   trace_pshrec

Definition at line 31 of file pshrec.c.

Function Documentation

static FT_Error ps_dimension_add_counter ( PS_Dimension  dim,
FT_Int  hint1,
FT_Int  hint2,
FT_Int  hint3,
FT_Memory  memory 
)
static
static void ps_dimension_done ( PS_Dimension  dimension,
FT_Memory  memory 
)
static
static FT_Error ps_dimension_end ( PS_Dimension  dim,
FT_UInt  end_point,
FT_Memory  memory 
)
static

Definition at line 763 of file pshrec.c.

References PS_DimensionRec_::counters, ps_dimension_end_mask(), and ps_mask_table_merge_all().

Referenced by ps_hints_close().

static void ps_dimension_end_mask ( PS_Dimension  dim,
FT_UInt  end_point 
)
static
static void ps_dimension_init ( PS_Dimension  dimension)
static
static FT_Error ps_dimension_reset_mask ( PS_Dimension  dim,
FT_UInt  end_point,
FT_Memory  memory 
)
static
static FT_Error ps_dimension_set_mask_bits ( PS_Dimension  dim,
const FT_Byte source,
FT_UInt  source_pos,
FT_UInt  source_bits,
FT_UInt  end_point,
FT_Memory  memory 
)
static
static FT_Error ps_hint_table_alloc ( PS_Hint_Table  table,
FT_Memory  memory,
PS_Hint ahint 
)
static
static void ps_hint_table_done ( PS_Hint_Table  table,
FT_Memory  memory 
)
static
static FT_Error ps_hint_table_ensure ( PS_Hint_Table  table,
FT_UInt  count,
FT_Memory  memory 
)
static
static FT_Error ps_hints_close ( PS_Hints  hints,
FT_UInt  end_point 
)
static
ps_hints_done ( PS_Hints  hints)

Definition at line 786 of file pshrec.c.

References ps_dimension_done().

Referenced by ps_hinter_done().

ps_hints_init ( PS_Hints  hints,
FT_Memory  memory 
)

Definition at line 800 of file pshrec.c.

References FT_MEM_ZERO.

Referenced by ps_hinter_init().

static void ps_hints_open ( PS_Hints  hints,
PS_Hint_Type  hint_type 
)
static
static void ps_hints_stem ( PS_Hints  hints,
FT_Int  dimension,
FT_UInt  count,
FT_Long stems 
)
static
static void ps_hints_t1reset ( PS_Hints  hints,
FT_UInt  end_point 
)
static
static void ps_hints_t2counter ( PS_Hints  hints,
FT_UInt  bit_count,
const FT_Byte bytes 
)
static
static void ps_hints_t2mask ( PS_Hints  hints,
FT_UInt  end_point,
FT_UInt  bit_count,
const FT_Byte bytes 
)
static
static void ps_mask_clear_bit ( PS_Mask  mask,
FT_Int  idx 
)
static

Definition at line 169 of file pshrec.c.

References PS_MaskRec_::bytes, and PS_MaskRec_::num_bits.

Referenced by ps_mask_table_merge().

static void ps_mask_done ( PS_Mask  mask,
FT_Memory  memory 
)
static
static FT_Error ps_mask_ensure ( PS_Mask  mask,
FT_UInt  count,
FT_Memory  memory 
)
static
static FT_Error ps_mask_set_bit ( PS_Mask  mask,
FT_Int  idx,
FT_Memory  memory 
)
static
static void ps_mask_table_done ( PS_Mask_Table  table,
FT_Memory  memory 
)
static
static FT_Error ps_mask_table_ensure ( PS_Mask_Table  table,
FT_UInt  count,
FT_Memory  memory 
)
static
static FT_Error ps_mask_table_last ( PS_Mask_Table  table,
FT_Memory  memory,
PS_Mask amask 
)
static
static FT_Error ps_mask_table_merge_all ( PS_Mask_Table  table,
FT_Memory  memory 
)
static
static FT_Error ps_mask_table_set_bits ( PS_Mask_Table  table,
const FT_Byte source,
FT_UInt  bit_pos,
FT_UInt  bit_count,
FT_Memory  memory 
)
static
static FT_Int ps_mask_table_test_intersect ( PS_Mask_Table  table,
FT_Int  index1,
FT_Int  index2 
)
static

Definition at line 374 of file pshrec.c.

References PS_MaskRec_::bytes, PS_Mask_TableRec_::masks, and PS_MaskRec_::num_bits.

Referenced by ps_mask_table_merge_all().

static FT_Int ps_mask_test_bit ( PS_Mask  mask,
FT_Int  idx 
)
static

Definition at line 157 of file pshrec.c.

References PS_MaskRec_::bytes, and PS_MaskRec_::num_bits.

Referenced by ps_dimension_add_counter().

t1_hints_funcs_init ( T1_Hints_FuncsRec funcs)
static void t1_hints_open ( T1_Hints  hints)
static

Definition at line 1124 of file pshrec.c.

References PS_HINT_TYPE_1, and ps_hints_open().

Referenced by t1_hints_funcs_init().

static void t1_hints_stem ( T1_Hints  hints,
FT_Int  dimension,
FT_Fixed coords 
)
static

Definition at line 1130 of file pshrec.c.

References FIXED_TO_INT, FT_Pos, and ps_hints_stem().

Referenced by t1_hints_funcs_init().

t2_hints_funcs_init ( T2_Hints_FuncsRec funcs)
static void t2_hints_open ( T2_Hints  hints)
static

Definition at line 1167 of file pshrec.c.

References PS_HINT_TYPE_2, and ps_hints_open().

Referenced by t2_hints_funcs_init().

static void t2_hints_stems ( T2_Hints  hints,
FT_Int  dimension,
FT_Int  count,
FT_Fixed coords 
)
static

Definition at line 1174 of file pshrec.c.

References FIXED_TO_INT, FT_Pos, and ps_hints_stem().

Referenced by t2_hints_funcs_init().