#include <ft2build.h>
#include "ftcmru.h"
#include "ftcimage.h"
#include "ftcmanag.h"
#include "ftcglyph.h"
#include "ftcsbits.h"
Go to the source code of this file.
|
| ftc_inode_free (FTC_Node inode, FTC_Cache cache) |
|
| ftc_inode_new (FTC_Node *pinode, FT_Pointer gquery, FTC_Cache cache) |
|
| ftc_inode_weight (FTC_Node inode, FTC_Cache cache) |
|
| ftc_snode_free (FTC_Node snode, FTC_Cache cache) |
|
| ftc_snode_new (FTC_Node *psnode, FT_Pointer gquery, FTC_Cache cache) |
|
| ftc_snode_weight (FTC_Node snode, FTC_Cache cache) |
|
| ftc_snode_compare (FTC_Node snode, FT_Pointer gquery, FTC_Cache cache, FT_Bool *list_changed) |
|
| ftc_gnode_compare (FTC_Node gnode, FT_Pointer gquery, FTC_Cache cache, FT_Bool *list_changed) |
|
| ftc_gcache_init (FTC_Cache cache) |
|
| ftc_gcache_done (FTC_Cache cache) |
|
| ftc_cache_init (FTC_Cache cache) |
|
| ftc_cache_done (FTC_Cache cache) |
|
| ftc_node_destroy (FTC_Node node, FTC_Manager manager) |
|
◆ ftc_cache_done()
Definition at line 389 of file ftccache.c.
390 {
392 {
394
395
397
402
404 }
405 }
static void FTC_Cache_Clear(FTC_Cache cache)
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
static char memory[1024 *256]
Referenced by FTC_Cache_Done().
◆ ftc_cache_init()
Definition at line 335 of file ftccache.c.
336 {
339
340
344
347 }
#define FTC_HASH_INITIAL_SIZE
#define FTC_HASH_MAX_LOAD
#define FT_NEW_ARRAY(ptr, count)
Referenced by FTC_Cache_Init().
◆ ftc_gcache_done()
Definition at line 153 of file ftcglyph.c.
154 {
156
157
160 }
FTC_Cache_Done(FTC_Cache cache)
struct FTC_GCacheRec_ * FTC_GCache
FTC_MruList_Done(FTC_MruList list)
◆ ftc_gcache_init()
Definition at line 119 of file ftcglyph.c.
120 {
123
124
127 {
129
132 0,
135 }
136
138 }
FTC_Cache_Init(FTC_Cache cache)
const FTC_GCacheClassRec * FTC_GCacheClass
FTC_MruList_Init(FTC_MruList list, FTC_MruListClass clazz, FT_UInt max_nodes, FT_Pointer data, FT_Memory memory)
FTC_MruListClass family_class
◆ ftc_gnode_compare()
Definition at line 66 of file ftcglyph.c.
70 {
74
75
76 if ( list_changed )
77 *list_changed =
FALSE;
80 }
struct FTC_GNodeRec_ * FTC_GNode
struct FTC_GQueryRec_ * FTC_GQuery
Referenced by FTC_GNode_Compare().
◆ ftc_inode_free()
Definition at line 31 of file ftcimage.c.
33 {
36
37
39 {
42 }
43
46 }
FTC_GNode_Done(FTC_GNode gnode, FTC_Cache cache)
FT_BEGIN_HEADER struct FTC_INodeRec_ * FTC_INode
FT_Done_Glyph(FT_Glyph glyph)
Referenced by FTC_INode_Free().
◆ ftc_inode_new()
Definition at line 95 of file ftcimage.c.
98 {
101
102
104 }
FTC_INode_New(FTC_INode *pinode, FTC_GQuery gquery, FTC_Cache cache)
◆ ftc_inode_weight()
Definition at line 108 of file ftcimage.c.
110 {
114
116
117
119 {
120 case FT_GLYPH_FORMAT_BITMAP:
121 {
123
124
127 sizeof ( *bitg );
128 }
129 break;
130
132 {
134
135
140 sizeof ( *outg );
141 }
142 break;
143
144 default:
145 ;
146 }
147
148 size +=
sizeof ( *inode );
150 }
struct FT_BitmapGlyphRec_ * FT_BitmapGlyph
struct FT_OutlineGlyphRec_ * FT_OutlineGlyph
smooth FT_Module_Constructor FT_Module_Destructor FT_Module_Requester FT_GLYPH_FORMAT_OUTLINE
ActualNumberDriverObjects * sizeof(PDRIVER_OBJECT)) PDRIVER_OBJECT *DriverObjectList
◆ ftc_node_destroy()
Definition at line 273 of file ftccache.c.
275 {
277
278
279#ifdef FT_DEBUG_ERROR
280
282 {
283 FT_TRACE0((
"ftc_node_destroy: invalid node handle\n" ));
284 return;
285 }
286#endif
287
289
290#ifdef FT_DEBUG_ERROR
292 {
293 FT_TRACE0((
"ftc_node_destroy: invalid node handle\n" ));
294 return;
295 }
296#endif
297
299
300
302
303
305
306
308
309#if 0
310
312 FT_TRACE0((
"ftc_node_destroy: invalid cache node count (%d)\n",
314#endif
315 }
static void ftc_node_mru_unlink(FTC_Node node, FTC_Manager manager)
static void ftc_node_hash_unlink(FTC_Node node0, FTC_Cache cache)
#define FT_TRACE0(varformat)
FTC_Cache caches[FTC_MAX_CACHES]
Referenced by FTC_Manager_Compress(), and FTC_Manager_FlushN().
◆ ftc_snode_compare()
Definition at line 327 of file ftcsbits.c.
331 {
337
338
339 if (list_changed)
340 *list_changed =
FALSE;
344 {
345
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
382 {
385
386
387 ftcsnode->ref_count++;
388
389
391 {
393 }
395
396 ftcsnode->ref_count--;
397
400 else
402 }
403 }
404
406 }
#define FTC_CACHE_TRYLOOP_END(list_changed)
#define FTC_CACHE_TRYLOOP(cache)
static FT_Error ftc_snode_load(FTC_SNode snode, FTC_Manager manager, FT_UInt gindex, FT_ULong *asize)
struct FTC_SNodeRec_ * FTC_SNode
FT_BEGIN_HEADER typedef unsigned char FT_Bool
FTC_SBitRec sbits[FTC_SBIT_ITEMS_PER_NODE]
Referenced by FTC_SNode_Compare().
◆ ftc_snode_free()
◆ ftc_snode_new()
Definition at line 268 of file ftcsbits.c.
271 {
274
275
277 }
FTC_SNode_New(FTC_SNode *psnode, FTC_GQuery gquery, FTC_Cache cache)
◆ ftc_snode_weight()
Definition at line 281 of file ftcsbits.c.
283 {
289
291
292
294
295
296 size =
sizeof ( *snode );
297
299 {
301 {
303 if ( pitch < 0 )
304 pitch = -pitch;
305
306
308 }
309 }
310
312 }
#define FTC_SBIT_ITEMS_PER_NODE
#define FT_ASSERT(condition)