#include <ft2build.h>
#include "ftcsbits.h"
#include "ftccback.h"
#include "ftcerror.h"
Go to the source code of this file.
Defines | |
#define | FT_COMPONENT trace_cache |
#define | CHECK_CHAR(d) ( temp = (FT_Char)d, temp == d ) |
#define | CHECK_BYTE(d) ( temp = (FT_Byte)d, temp == d ) |
Functions | |
static FT_Error | ftc_sbit_copy_bitmap (FTC_SBit sbit, FT_Bitmap *bitmap, FT_Memory memory) |
ftc_snode_free (FTC_Node ftcsnode, FTC_Cache cache) | |
FTC_SNode_Free (FTC_SNode snode, FTC_Cache cache) | |
static FT_Error | ftc_snode_load (FTC_SNode snode, FTC_Manager manager, FT_UInt gindex, FT_ULong *asize) |
FTC_SNode_New (FTC_SNode *psnode, FTC_GQuery gquery, FTC_Cache cache) | |
ftc_snode_new (FTC_Node *ftcpsnode, FT_Pointer ftcgquery, FTC_Cache cache) | |
ftc_snode_weight (FTC_Node ftcsnode, FTC_Cache cache) | |
ftc_snode_compare (FTC_Node ftcsnode, FT_Pointer ftcgquery, FTC_Cache cache) | |
FTC_SNode_Compare (FTC_SNode snode, FTC_GQuery gquery, FTC_Cache cache) |
Referenced by ftc_snode_load().
Referenced by ftc_snode_load().
#define FT_COMPONENT trace_cache |
Definition at line 30 of file ftcsbits.c.
static FT_Error ftc_sbit_copy_bitmap | ( | FTC_SBit | sbit, | |
FT_Bitmap * | bitmap, | |||
FT_Memory | memory | |||
) | [static] |
Definition at line 43 of file ftcsbits.c.
References FT_Bitmap_::buffer, FTC_SBitRec_::buffer, error, FT_ALLOC, FT_MEM_COPY, FT_Bitmap_::pitch, FT_Bitmap_::rows, and size.
Referenced by ftc_snode_load().
FTC_SNode_Compare | ( | FTC_SNode | snode, | |
FTC_GQuery | gquery, | |||
FTC_Cache | cache | |||
) |
Definition at line 396 of file ftcsbits.c.
References FTC_NODE, and ftc_snode_compare().
Referenced by FTC_SBitCache_Lookup(), and FTC_SBitCache_LookupScaler().
ftc_snode_compare | ( | FTC_Node | ftcsnode, | |
FT_Pointer | ftcgquery, | |||
FTC_Cache | cache | |||
) |
Definition at line 316 of file ftcsbits.c.
References FTC_SBitRec_::buffer, FTC_SNodeRec_::count, error, FTC_GNodeRec_::family, FTC_GQueryRec_::family, FT_Bool, FT_BOOL, FTC_CACHE_TRYLOOP, FTC_CACHE_TRYLOOP_END, FTC_GNODE, ftc_snode_load(), FTC_GNodeRec_::gindex, FTC_GQueryRec_::gindex, NULL, result(), FTC_SNodeRec_::sbits, size, and FTC_SBitRec_::width.
Referenced by FTC_SNode_Compare().
Definition at line 84 of file ftcsbits.c.
References FTC_NODE, and ftc_snode_free().
Referenced by FTC_SNode_New().
Definition at line 65 of file ftcsbits.c.
References FTC_SBitRec_::buffer, FTC_SNodeRec_::count, FT_FREE, FTC_GNODE, FTC_GNode_Done(), and FTC_SNodeRec_::sbits.
Referenced by FTC_SNode_Free().
static FT_Error ftc_snode_load | ( | FTC_SNode | snode, | |
FTC_Manager | manager, | |||
FT_UInt | gindex, | |||
FT_ULong * | asize | |||
) | [static] |
Definition at line 102 of file ftcsbits.c.
References FT_GlyphSlotRec_::advance, FT_GlyphSlotRec_::bitmap, FT_GlyphSlotRec_::bitmap_left, FT_GlyphSlotRec_::bitmap_top, FTC_SBitRec_::buffer, CHECK_BYTE, CHECK_CHAR, FTC_SFamilyClassRec_::clazz, FTC_SNodeRec_::count, error, FTC_GNodeRec_::family, FTC_SFamilyClassRec_::family_load_glyph, FT_GlyphSlotRec_::format, FTC_SBitRec_::format, FT_ABS, FT_ERROR, FT_GLYPH_FORMAT_BITMAP, FT_Pos, FT_TRACE0, FTC_GNODE, ftc_sbit_copy_bitmap(), FTC_GNodeRec_::gindex, FTC_SBitRec_::height, FTC_SBitRec_::left, FTC_SBitRec_::max_grays, FTC_ManagerRec_::memory, NULL, FT_Bitmap_::num_grays, FT_Bitmap_::pitch, FTC_SBitRec_::pitch, FT_Bitmap_::pixel_mode, FT_Bitmap_::rows, FTC_SNodeRec_::sbits, FTC_SBitRec_::top, FT_Bitmap_::width, FTC_SBitRec_::width, FT_Vector_::x, FTC_SBitRec_::xadvance, FT_Vector_::y, and FTC_SBitRec_::yadvance.
Referenced by ftc_snode_compare(), and FTC_SNode_New().
ftc_snode_new | ( | FTC_Node * | ftcpsnode, | |
FT_Pointer | ftcgquery, | |||
FTC_Cache | cache | |||
) |
FTC_SNode_New | ( | FTC_SNode * | psnode, | |
FTC_GQuery | gquery, | |||
FTC_Cache | cache | |||
) |
Definition at line 204 of file ftcsbits.c.
References FTC_SNodeRec_::count, error, FTC_SFamilyClassRec_::family_get_count, FT_NEW, FTC_CACHE__SFAMILY_CLASS, FTC_GNODE, FTC_GNode_Init(), FTC_SBIT_ITEMS_PER_NODE, FTC_SNode_Free(), ftc_snode_load(), NULL, start, and total.
Referenced by ftc_snode_new().
Definition at line 270 of file ftcsbits.c.
References FTC_SBitRec_::buffer, FTC_SNodeRec_::count, FT_ASSERT, FT_UNUSED, FTC_SBIT_ITEMS_PER_NODE, FTC_SBitRec_::height, if(), FTC_SBitRec_::pitch, FTC_SNodeRec_::sbits, and size.