sdk-world v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
Loading...
Searching...
No Matches
ftcmanag.h File Reference
#include <freetype/ftcache.h>
#include "ftcmru.h"
#include "ftccache.h"

Go to the source code of this file.

Classes

struct  FTC_ManagerRec_

Macros

#define FTC_MAX_FACES_DEFAULT   2
#define FTC_MAX_SIZES_DEFAULT   4
#define FTC_MAX_BYTES_DEFAULT   200000L
#define FTC_MAX_CACHES   16
#define FTC_SCALER_COMPARE(a, b)
#define FTC_SCALER_HASH(q)

Typedefs

typedef struct FTC_ManagerRec_ FTC_ManagerRec

Functions

 FTC_Manager_Compress (FTC_Manager manager)
 FTC_Manager_FlushN (FTC_Manager manager, FT_UInt count)
 FTC_Manager_RegisterCache (FTC_Manager manager, FTC_CacheClass clazz, FTC_Cache *acache)

Macro Definition Documentation

◆ FTC_MAX_BYTES_DEFAULT

#define FTC_MAX_BYTES_DEFAULT   200000L

Definition at line 88 of file ftcmanag.h.

◆ FTC_MAX_CACHES

#define FTC_MAX_CACHES   16

Definition at line 91 of file ftcmanag.h.

◆ FTC_MAX_FACES_DEFAULT

#define FTC_MAX_FACES_DEFAULT   2

Definition at line 86 of file ftcmanag.h.

◆ FTC_MAX_SIZES_DEFAULT

#define FTC_MAX_SIZES_DEFAULT   4

Definition at line 87 of file ftcmanag.h.

◆ FTC_SCALER_COMPARE

#define FTC_SCALER_COMPARE ( a,
b )
Value:
( (a)->face_id == (b)->face_id && \
(a)->width == (b)->width && \
(a)->height == (b)->height && \
((a)->pixel != 0) == ((b)->pixel != 0) && \
( (a)->pixel || \
( (a)->x_res == (b)->x_res && \
(a)->y_res == (b)->y_res ) ) )

Definition at line 158 of file ftcmanag.h.

◆ FTC_SCALER_HASH

#define FTC_SCALER_HASH ( q)
Value:
( FTC_FACE_ID_HASH( (q)->face_id ) + \
(q)->width + (q)->height*7 + \
( (q)->pixel ? 0 : ( (q)->x_res*33 ^ (q)->y_res*61 ) ) )

Definition at line 167 of file ftcmanag.h.

Function Documentation

◆ FTC_Manager_Compress()

FTC_Manager_Compress ( FTC_Manager manager)

Definition at line 519 of file ftcmanag.c.

◆ FTC_Manager_FlushN()

FTC_Manager_FlushN ( FTC_Manager manager,
FT_UInt count )

Definition at line 609 of file ftcmanag.c.

◆ FTC_Manager_RegisterCache()

FTC_Manager_RegisterCache ( FTC_Manager manager,
FTC_CacheClass clazz,
FTC_Cache * acache )

Definition at line 557 of file ftcmanag.c.