zenilib
0.5.3.0
|
#include <ft2build.h>
#include <FT_CACHE_H>
#include "ftcmanag.h"
#include <FT_INTERNAL_OBJECTS_H>
#include <FT_INTERNAL_DEBUG_H>
#include <FT_SIZES_H>
#include "ftccback.h"
#include "ftcerror.h"
Go to the source code of this file.
Macros | |
#define | FT_COMPONENT trace_cache |
#define | FTC_FACE_NODE(x) ( ( FTC_FaceNode )( x ) ) |
#define | FTC_LRU_GET_MANAGER(lru) ( (FTC_Manager)(lru)->user_data ) |
#define | FTC_SIZE_NODE(x) ( (FTC_SizeNode)( x ) ) |
Typedefs | |
typedef struct FTC_FaceNodeRec_ * | FTC_FaceNode |
typedef struct FTC_FaceNodeRec_ | FTC_FaceNodeRec |
typedef struct FTC_SizeNodeRec_ * | FTC_SizeNode |
typedef struct FTC_SizeNodeRec_ | FTC_SizeNodeRec |
Variables | |
FT_CALLBACK_TABLE_DEF const FTC_MruListClassRec | ftc_face_list_class |
FT_CALLBACK_TABLE_DEF const FTC_MruListClassRec | ftc_size_list_class |
#define FT_COMPONENT trace_cache |
Definition at line 35 of file ftcmanag.c.
#define FTC_FACE_NODE | ( | x | ) | ( ( FTC_FaceNode )( x ) ) |
Definition at line 229 of file ftcmanag.c.
Referenced by FTC_Manager_LookupFace().
#define FTC_LRU_GET_MANAGER | ( | lru | ) | ( (FTC_Manager)(lru)->user_data ) |
Definition at line 37 of file ftcmanag.c.
#define FTC_SIZE_NODE | ( | x | ) | ( (FTC_SizeNode)( x ) ) |
Definition at line 85 of file ftcmanag.c.
Referenced by FTC_Manager_LookupSize().
typedef struct FTC_FaceNodeRec_ * FTC_FaceNode |
typedef struct FTC_FaceNodeRec_ FTC_FaceNodeRec |
typedef struct FTC_SizeNodeRec_ * FTC_SizeNode |
typedef struct FTC_SizeNodeRec_ FTC_SizeNodeRec |
ftc_face_node_compare | ( | FTC_MruNode | ftcnode, |
FT_Pointer | ftcface_id | ||
) |
Definition at line 282 of file ftcmanag.c.
References FT_BOOL, and FTC_FaceID.
Referenced by FTC_Manager_LookupFace(), and FTC_Manager_RemoveFaceID().
ftc_face_node_done | ( | FTC_MruNode | ftcnode, |
FT_Pointer | ftcmanager | ||
) |
Definition at line 261 of file ftcmanag.c.
References FT_Done_Face(), FTC_MruList_RemoveSelection(), ftc_size_node_compare_faceid(), NULL, and FTC_ManagerRec_::sizes.
ftc_face_node_init | ( | FTC_MruNode | ftcnode, |
FT_Pointer | ftcface_id, | ||
FT_Pointer | ftcmanager | ||
) |
Definition at line 233 of file ftcmanag.c.
References error, FT_Done_Size(), FTC_FaceID, FTC_ManagerRec_::library, FTC_ManagerRec_::request_data, and FTC_ManagerRec_::request_face.
FTC_Manager_Compress | ( | FTC_Manager | manager | ) |
Definition at line 532 of file ftcmanag.c.
References FT_TRACE0, FTC_NODE__PREV, ftc_node_destroy(), NULL, and FTC_NodeRec_::ref_count.
Referenced by ftc_cache_add().
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(), idx, and NULL.
FTC_Manager_FlushN | ( | FTC_Manager | manager, |
FT_UInt | count | ||
) |
Definition at line 626 of file ftcmanag.c.
References FTC_NODE__PREV, ftc_node_destroy(), NULL, and FTC_NodeRec_::ref_count.
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_MAX_BYTES_DEFAULT, FTC_MAX_FACES_DEFAULT, FTC_MAX_SIZES_DEFAULT, FTC_MruList_Init(), FTC_ManagerRec_::library, library, FTC_ManagerRec_::max_weight, FTC_ManagerRec_::memory, FTC_ManagerRec_::request_data, FTC_ManagerRec_::request_face, and FTC_ManagerRec_::sizes.
FTC_Manager_RegisterCache | ( | FTC_Manager | manager, |
FTC_CacheClass | clazz, | ||
FTC_Cache * | acache | ||
) |
Definition at line 574 of file ftcmanag.c.
References FTC_CacheRec_::clazz, error, FT_ALLOC, FT_ERROR, FT_FREE, FTC_MAX_CACHES, FTC_CacheRec_::index, FTC_CacheRec_::manager, FTC_CacheRec_::memory, NULL, and FTC_CacheRec_::org_class.
Referenced by FTC_CMapCache_New(), and FTC_GCache_New().
FTC_Manager_RemoveFaceID | ( | FTC_Manager | manager, |
FTC_FaceID | face_id | ||
) |
Definition at line 664 of file ftcmanag.c.
References FTC_Cache_RemoveFaceID(), ftc_face_node_compare(), and FTC_MruList_RemoveSelection().
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.
|
static |
Definition at line 41 of file ftcmanag.c.
References error, FTC_ScalerRec_::face_id, FT_Activate_Size(), FT_Done_Size(), FT_New_Size(), FT_Set_Char_Size(), FT_Set_Pixel_Sizes(), FTC_Manager_LookupFace(), FTC_ScalerRec_::height, NULL, FTC_ScalerRec_::pixel, FTC_ScalerRec_::width, FTC_ScalerRec_::x_res, and FTC_ScalerRec_::y_res.
Referenced by ftc_size_node_init(), and ftc_size_node_reset().
ftc_size_node_compare | ( | FTC_MruNode | ftcnode, |
FT_Pointer | ftcscaler | ||
) |
Definition at line 103 of file ftcmanag.c.
References FT_Activate_Size(), and FTC_SCALER_COMPARE.
Referenced by FTC_Manager_LookupSize().
|
static |
Definition at line 167 of file ftcmanag.c.
References FT_BOOL, and FTC_FaceID.
Referenced by ftc_face_node_done().
ftc_size_node_done | ( | FTC_MruNode | ftcnode, |
FT_Pointer | data | ||
) |
Definition at line 89 of file ftcmanag.c.
References FT_Done_Size(), and FT_UNUSED.
ftc_size_node_init | ( | FTC_MruNode | ftcnode, |
FT_Pointer | ftcscaler, | ||
FT_Pointer | ftcmanager | ||
) |
Definition at line 121 of file ftcmanag.c.
References ftc_scaler_lookup_size().
ftc_size_node_reset | ( | FTC_MruNode | ftcnode, |
FT_Pointer | ftcscaler, | ||
FT_Pointer | ftcmanager | ||
) |
Definition at line 137 of file ftcmanag.c.
References FT_Done_Size(), and ftc_scaler_lookup_size().
FT_CALLBACK_TABLE_DEF const FTC_MruListClassRec ftc_face_list_class |
Definition at line 294 of file ftcmanag.c.
FT_CALLBACK_TABLE_DEF const FTC_MruListClassRec ftc_size_list_class |
Definition at line 155 of file ftcmanag.c.