ftcache.h File Reference

#include <ft2build.h>

Go to the source code of this file.

Classes

struct  FTC_ScalerRec_
struct  FTC_ImageTypeRec_
struct  FTC_SBitRec_

Defines

#define FT_POINTER_TO_ULONG(p)   ( (FT_ULong)(FT_Pointer)(p) )
#define FTC_FACE_ID_HASH(i)
#define FTC_IMAGE_TYPE_COMPARE(d1, d2)
#define FTC_IMAGE_TYPE_HASH(d)

Typedefs

typedef FT_Error(*) FTC_Face_Requester (FTC_FaceID face_id, FT_Library library, FT_Pointer request_data, FT_Face *aface)
typedef FTC_ManagerRec_FTC_Manager
typedef FTC_NodeRec_FTC_Node
typedef FTC_ScalerRec_ FTC_ScalerRec
typedef FTC_ScalerRec_FTC_Scaler
typedef FTC_CMapCacheRec_ * FTC_CMapCache
typedef FTC_ImageTypeRec_ FTC_ImageTypeRec
typedef FTC_ImageTypeRec_FTC_ImageType
typedef FTC_ImageCacheRec_ * FTC_ImageCache
typedef FTC_SBitRec_FTC_SBit
typedef FTC_SBitRec_ FTC_SBitRec
typedef FTC_SBitCacheRec_ * FTC_SBitCache

Functions

 FTC_Manager_New (FT_Library library, FT_UInt max_faces, FT_UInt max_sizes, FT_ULong max_bytes, FTC_Face_Requester requester, FT_Pointer req_data, FTC_Manager *amanager)
 FTC_Manager_Reset (FTC_Manager manager)
 FTC_Manager_Done (FTC_Manager manager)
 FTC_Manager_LookupFace (FTC_Manager manager, FTC_FaceID face_id, FT_Face *aface)
 FTC_Manager_LookupSize (FTC_Manager manager, FTC_Scaler scaler, FT_Size *asize)
 FTC_Node_Unref (FTC_Node node, FTC_Manager manager)
 FTC_Manager_RemoveFaceID (FTC_Manager manager, FTC_FaceID face_id)
 FTC_CMapCache_New (FTC_Manager manager, FTC_CMapCache *acache)
 FTC_CMapCache_Lookup (FTC_CMapCache cache, FTC_FaceID face_id, FT_Int cmap_index, FT_UInt32 char_code)
 FTC_ImageCache_New (FTC_Manager manager, FTC_ImageCache *acache)
 FTC_ImageCache_Lookup (FTC_ImageCache cache, FTC_ImageType type, FT_UInt gindex, FT_Glyph *aglyph, FTC_Node *anode)
 FTC_ImageCache_LookupScaler (FTC_ImageCache cache, FTC_Scaler scaler, FT_ULong load_flags, FT_UInt gindex, FT_Glyph *aglyph, FTC_Node *anode)
 FTC_SBitCache_New (FTC_Manager manager, FTC_SBitCache *acache)
 FTC_SBitCache_Lookup (FTC_SBitCache cache, FTC_ImageType type, FT_UInt gindex, FTC_SBit *sbit, FTC_Node *anode)
 FTC_SBitCache_LookupScaler (FTC_SBitCache cache, FTC_Scaler scaler, FT_ULong load_flags, FT_UInt gindex, FTC_SBit *sbit, FTC_Node *anode)

Variables

FT_BEGIN_HEADER typedef FT_Pointer FTC_FaceID


Define Documentation

#define FT_POINTER_TO_ULONG ( p   )     ( (FT_ULong)(FT_Pointer)(p) )

Definition at line 214 of file ftcache.h.

#define FTC_FACE_ID_HASH ( i   ) 

Value:

((FT_UInt32)(( FT_POINTER_TO_ULONG( i ) >> 3 ) ^   \
                       ( FT_POINTER_TO_ULONG( i ) << 7 ) ) )

Definition at line 216 of file ftcache.h.

#define FTC_IMAGE_TYPE_COMPARE ( d1,
d2   ) 

Value:

( (d1)->face_id == (d2)->face_id && \
            (d1)->width   == (d2)->width   && \
            (d1)->flags   == (d2)->flags   )

Definition at line 695 of file ftcache.h.

#define FTC_IMAGE_TYPE_HASH ( d   ) 

Value:

(FT_UFast)( FTC_FACE_ID_HASH( (d)->face_id )  ^ \
                      ( (d)->width << 8 ) ^ (d)->height ^ \
                      ( (d)->flags << 4 )               )

Definition at line 700 of file ftcache.h.


Typedef Documentation

typedef struct FTC_CMapCacheRec_* FTC_CMapCache

Definition at line 563 of file ftcache.h.

typedef FT_Error(*) FTC_Face_Requester(FTC_FaceID face_id, FT_Library library, FT_Pointer request_data, FT_Face *aface)

Definition at line 207 of file ftcache.h.

typedef struct FTC_ImageCacheRec_* FTC_ImageCache

Definition at line 716 of file ftcache.h.

typedef struct FTC_ImageTypeRec_* FTC_ImageType

Definition at line 689 of file ftcache.h.

typedef struct FTC_ImageTypeRec_ FTC_ImageTypeRec

typedef struct FTC_ManagerRec_* FTC_Manager

Definition at line 253 of file ftcache.h.

typedef struct FTC_NodeRec_* FTC_Node

Definition at line 273 of file ftcache.h.

typedef struct FTC_SBitRec_* FTC_SBit

Definition at line 857 of file ftcache.h.

typedef struct FTC_SBitCacheRec_* FTC_SBitCache

Definition at line 924 of file ftcache.h.

typedef struct FTC_SBitRec_ FTC_SBitRec

typedef struct FTC_ScalerRec_* FTC_Scaler

Definition at line 448 of file ftcache.h.

typedef struct FTC_ScalerRec_ FTC_ScalerRec


Function Documentation

FTC_CMapCache_Lookup ( FTC_CMapCache  cache,
FTC_FaceID  face_id,
FT_Int  cmap_index,
FT_UInt32  char_code 
)

Definition at line 279 of file ftccmap.c.

References FTC_CMapQueryRec_::char_code, FTC_CMapQueryRec_::cmap_index, error, FTC_CMapQueryRec_::face_id, FT_ASSERT, FT_Get_Char_Index(), FT_Select_Charmap(), FT_Set_Charmap(), FT_TRACE0, FTC_CACHE, FTC_CACHE_LOOKUP_CMP, FTC_CMAP_HASH, FTC_CMAP_INDICES_MAX, FTC_CMAP_NODE, ftc_cmap_node_compare(), FTC_CMAP_UNKNOWN, FTC_Manager_LookupFace(), hash, and NULL.

FTC_CMapCache_New ( FTC_Manager  manager,
FTC_CMapCache acache 
)

Definition at line 252 of file ftccmap.c.

References FTC_CACHE_P, ftc_cmap_cache_class, and FTC_Manager_RegisterCache().

FTC_ImageCache_Lookup ( FTC_ImageCache  cache,
FTC_ImageType  type,
FT_UInt  gindex,
FT_Glyph aglyph,
FTC_Node anode 
)

Definition at line 312 of file ftcbasic.c.

References FTC_BasicQueryRec_::attrs, error, FTC_ScalerRec_::face_id, FT_INT_MIN, FT_TRACE1, FT_UINT_MAX, FTC_BASIC_ATTR_HASH, ftc_basic_family_compare(), FTC_GCACHE, FTC_GCACHE_LOOKUP_CMP, FTC_GNode_Compare(), FTC_GQUERY, FTC_INODE, hash, FTC_ScalerRec_::height, FTC_BasicAttrRec_::load_flags, NULL, FTC_ScalerRec_::pixel, FTC_NodeRec_::ref_count, FTC_BasicAttrRec_::scaler, FTC_ScalerRec_::width, x10000L, FTC_ScalerRec_::x_res, and FTC_ScalerRec_::y_res.

FTC_ImageCache_LookupScaler ( FTC_ImageCache  cache,
FTC_Scaler  scaler,
FT_ULong  load_flags,
FT_UInt  gindex,
FT_Glyph aglyph,
FTC_Node anode 
)

Definition at line 407 of file ftcbasic.c.

References FTC_BasicQueryRec_::attrs, error, FT_TRACE1, FT_UINT_MAX, FTC_BASIC_ATTR_HASH, ftc_basic_family_compare(), FTC_GCACHE_LOOKUP_CMP, FTC_GNode_Compare(), FTC_INODE, hash, FTC_BasicAttrRec_::load_flags, NULL, FTC_NodeRec_::ref_count, and FTC_BasicAttrRec_::scaler.

FTC_ImageCache_New ( FTC_Manager  manager,
FTC_ImageCache acache 
)

Definition at line 301 of file ftcbasic.c.

References ftc_basic_image_cache_class, and FTC_GCache_New().

FTC_Manager_Done ( FTC_Manager  manager  ) 

Definition at line 412 of file ftcmanag.c.

References FTC_CacheClassRec_::cache_done, FTC_CacheRec_::clazz, FT_FREE, FTC_MruList_Done(), and NULL.

FTC_Manager_LookupFace ( FTC_Manager  manager,
FTC_FaceID  face_id,
FT_Face aface 
)

Definition at line 308 of file ftcmanag.c.

References error, FTC_FACE_NODE, ftc_face_node_compare(), FTC_MRULIST_LOOKUP_CMP, and NULL.

Referenced by ftc_basic_family_get_count(), FTC_CMapCache_Lookup(), and ftc_scaler_lookup_size().

FTC_Manager_LookupSize ( FTC_Manager  manager,
FTC_Scaler  scaler,
FT_Size asize 
)

Definition at line 181 of file ftcmanag.c.

References error, FTC_MRULIST_LOOKUP_CMP, FTC_SIZE_NODE, ftc_size_node_compare(), and NULL.

Referenced by ftc_basic_family_load_bitmap(), and ftc_basic_family_load_glyph().

FTC_Manager_New ( FT_Library  library,
FT_UInt  max_faces,
FT_UInt  max_sizes,
FT_ULong  max_bytes,
FTC_Face_Requester  requester,
FT_Pointer  req_data,
FTC_Manager amanager 
)

Definition at line 353 of file ftcmanag.c.

References error, FTC_ManagerRec_::faces, FT_NEW, ftc_face_list_class, FTC_MAX_BYTES_DEFAULT, FTC_MAX_FACES_DEFAULT, FTC_MAX_SIZES_DEFAULT, FTC_MruList_Init(), ftc_size_list_class, FTC_ManagerRec_::library, FTC_ManagerRec_::max_weight, FTC_ManagerRec_::memory, FTC_ManagerRec_::request_data, FTC_ManagerRec_::request_face, and FTC_ManagerRec_::sizes.

FTC_Manager_RemoveFaceID ( FTC_Manager  manager,
FTC_FaceID  face_id 
)

Definition at line 664 of file ftcmanag.c.

References FTC_Cache_RemoveFaceID(), FTC_MruList_RemoveSelection(), and NULL.

FTC_Manager_Reset ( FTC_Manager  manager  ) 

Definition at line 452 of file ftcmanag.c.

References FTC_MruList_Reset().

FTC_Node_Unref ( FTC_Node  node,
FTC_Manager  manager 
)

Definition at line 684 of file ftcmanag.c.

FTC_SBitCache_Lookup ( FTC_SBitCache  cache,
FTC_ImageType  type,
FT_UInt  gindex,
FTC_SBit sbit,
FTC_Node anode 
)

Definition at line 650 of file ftcbasic.c.

References FTC_BasicQueryRec_::attrs, error, FTC_ScalerRec_::face_id, FT_INT_MIN, FT_TRACE1, FT_UINT_MAX, FTC_BASIC_ATTR_HASH, ftc_basic_family_compare(), FTC_GCACHE, FTC_GCACHE_LOOKUP_CMP, FTC_GNODE, FTC_GQUERY, FTC_SBIT_ITEMS_PER_NODE, FTC_SNODE, FTC_SNode_Compare(), hash, FTC_ScalerRec_::height, FTC_BasicAttrRec_::load_flags, NULL, FTC_ScalerRec_::pixel, FTC_NodeRec_::ref_count, FTC_BasicAttrRec_::scaler, FTC_ScalerRec_::width, x10000L, FTC_ScalerRec_::x_res, and FTC_ScalerRec_::y_res.

FTC_SBitCache_LookupScaler ( FTC_SBitCache  cache,
FTC_Scaler  scaler,
FT_ULong  load_flags,
FT_UInt  gindex,
FTC_SBit sbit,
FTC_Node anode 
)

Definition at line 746 of file ftcbasic.c.

References FTC_BasicQueryRec_::attrs, error, FT_TRACE1, FT_UINT_MAX, FTC_BASIC_ATTR_HASH, ftc_basic_family_compare(), FTC_GCACHE_LOOKUP_CMP, FTC_GNODE, FTC_SBIT_ITEMS_PER_NODE, FTC_SNODE, FTC_SNode_Compare(), hash, FTC_BasicAttrRec_::load_flags, NULL, FTC_NodeRec_::ref_count, and FTC_BasicAttrRec_::scaler.

FTC_SBitCache_New ( FTC_Manager  manager,
FTC_SBitCache acache 
)

Definition at line 639 of file ftcbasic.c.

References ftc_basic_sbit_cache_class, and FTC_GCache_New().


Variable Documentation

FT_BEGIN_HEADER typedef FT_Pointer FTC_FaceID

Definition at line 168 of file ftcache.h.

Referenced by ftc_basic_gnode_compare_faceid(), ftc_cmap_node_remove_faceid(), ftc_face_node_compare(), ftc_face_node_init(), and ftc_size_node_compare_faceid().


Generated on Tue Jul 5 15:58:18 2011 for ROOT_528-00b_version by  doxygen 1.5.1