Data Structures |
| union | PAlignment |
| struct | TPoint |
| struct | TProfile |
| struct | TBand |
| struct | PWorker |
| struct | PRaster |
Defines |
| #define | RASTER_GRAY_LINES 2048 |
| #define | FT_COMPONENT trace_raster |
| #define | Raster_Err_None Raster_Err_Ok |
| #define | Raster_Err_Not_Ini Raster_Err_Raster_Uninitialized |
| #define | Raster_Err_Overflow Raster_Err_Raster_Overflow |
| #define | Raster_Err_Neg_Height Raster_Err_Raster_Negative_Height |
| #define | Raster_Err_Invalid Raster_Err_Invalid_Outline |
| #define | Raster_Err_Unsupported Raster_Err_Cannot_Render_Glyph |
| #define | FT_MEM_SET(d, s, c) ft_memset( d, s, c ) |
| #define | FT_MEM_ZERO(dest, count) FT_MEM_SET( dest, 0, count ) |
| #define | FMulDiv(a, b, c) ( (a) * (b) / (c) ) |
| #define | SMulDiv FT_MulDiv |
| #define | TRUE 1 |
| #define | FALSE 0 |
| #define | NULL (void*)0 |
| #define | SUCCESS 0 |
| #define | FAILURE 1 |
| #define | MaxBezier 32 /* The maximum number of stacked Bezier curves. */ |
| #define | Pixel_Bits 6 /* fractional bits of *input* coordinates */ |
| #define | Flow_Up 0x8 |
| #define | Overshoot_Top 0x10 |
| #define | Overshoot_Bottom 0x20 |
| #define | AlignProfileSize ( ( sizeof ( TProfile ) + sizeof ( Alignment ) - 1 ) / sizeof ( long ) ) |
| #define | RAS_ARGS PWorker worker, |
| #define | RAS_ARG PWorker worker |
| #define | RAS_VARS worker, |
| #define | RAS_VAR worker |
| #define | FT_UNUSED_RASTER FT_UNUSED( worker ) |
| #define | FLOOR(x) ( (x) & -ras.precision ) |
| #define | CEILING(x) ( ( (x) + ras.precision - 1 ) & -ras.precision ) |
| #define | TRUNC(x) ( (signed long)(x) >> ras.precision_bits ) |
| #define | FRAC(x) ( (x) & ( ras.precision - 1 ) ) |
| #define | SCALED(x) ( ( (x) << ras.scale_shift ) - ras.precision_half ) |
| #define | IS_BOTTOM_OVERSHOOT(x) ( CEILING( x ) - x >= ras.precision_half ) |
| #define | IS_TOP_OVERSHOOT(x) ( x - FLOOR( x ) >= ras.precision_half ) |
| #define | ras (*worker) |
| #define | SWAP_(x, y) |
Typedefs |
| typedef int | Int |
| typedef unsigned int | UInt |
| typedef short | Short |
| typedef unsigned short | UShort |
| typedef unsigned short * | PUShort |
| typedef long | Long |
| typedef long * | PLong |
| typedef unsigned char | Byte |
| typedef unsigned char * | PByte |
| typedef char | Bool |
| typedef TProfile * | PProfile |
| typedef PProfile | TProfileList |
| typedef PProfile * | PProfileList |
| typedef void | Function_Sweep_Init (RAS_ARGS Short *min, Short *max) |
| typedef void | Function_Sweep_Span (RAS_ARGS Short y, FT_F26Dot6 x1, FT_F26Dot6 x2, PProfile left, PProfile right) |
| typedef void | Function_Sweep_Step (RAS_ARG) |
| typedef void(* | TSplitter )(TPoint *base) |
Enumerations |
| enum | TStates { Unknown_State,
Ascending_State,
Descending_State,
Flat_State
} |
Functions |
| static void | Set_High_Precision (RAS_ARGS Int High) |
| static Bool | New_Profile (RAS_ARGS TStates aState, Bool overshoot) |
| static Bool | End_Profile (RAS_ARGS Bool overshoot) |
| static Bool | Insert_Y_Turn (RAS_ARGS Int y) |
| static Bool | Finalize_Profile_Table (RAS_ARG) |
| static void | Split_Conic (TPoint *base) |
| static void | Split_Cubic (TPoint *base) |
| static Bool | Line_Up (RAS_ARGS Long x1, Long y1, Long x2, Long y2, Long miny, Long maxy) |
| static Bool | Line_Down (RAS_ARGS Long x1, Long y1, Long x2, Long y2, Long miny, Long maxy) |
| static Bool | Bezier_Up (RAS_ARGS Int degree, TSplitter splitter, Long miny, Long maxy) |
| static Bool | Bezier_Down (RAS_ARGS Int degree, TSplitter splitter, Long miny, Long maxy) |
| static Bool | Line_To (RAS_ARGS Long x, Long y) |
| static Bool | Conic_To (RAS_ARGS Long cx, Long cy, Long x, Long y) |
| static Bool | Cubic_To (RAS_ARGS Long cx1, Long cy1, Long cx2, Long cy2, Long x, Long y) |
| static Bool | Decompose_Curve (RAS_ARGS UShort first, UShort last, int flipped) |
| static Bool | Convert_Glyph (RAS_ARGS int flipped) |
| static void | Init_Linked (TProfileList *l) |
| static void | InsNew (PProfileList list, PProfile profile) |
| static void | DelOld (PProfileList list, PProfile profile) |
| static void | Sort (PProfileList list) |
| static void | Vertical_Sweep_Init (RAS_ARGS Short *min, Short *max) |
| static void | Vertical_Sweep_Span (RAS_ARGS Short y, FT_F26Dot6 x1, FT_F26Dot6 x2, PProfile left, PProfile right) |
| static void | Vertical_Sweep_Drop (RAS_ARGS Short y, FT_F26Dot6 x1, FT_F26Dot6 x2, PProfile left, PProfile right) |
| static void | Vertical_Sweep_Step (RAS_ARG) |
| static void | Horizontal_Sweep_Init (RAS_ARGS Short *min, Short *max) |
| static void | Horizontal_Sweep_Span (RAS_ARGS Short y, FT_F26Dot6 x1, FT_F26Dot6 x2, PProfile left, PProfile right) |
| static void | Horizontal_Sweep_Drop (RAS_ARGS Short y, FT_F26Dot6 x1, FT_F26Dot6 x2, PProfile left, PProfile right) |
| static void | Horizontal_Sweep_Step (RAS_ARG) |
| static Bool | Draw_Sweep (RAS_ARG) |
| static int | Render_Single_Pass (RAS_ARGS Bool flipped) |
| | Render_Glyph (RAS_ARG) |
| | Render_Gray_Glyph (RAS_ARG) |
| static void | ft_black_init (PRaster raster) |
| static int | ft_black_new (FT_Memory memory, PRaster *araster) |
| static void | ft_black_done (PRaster raster) |
| static void | ft_black_reset (PRaster raster, char *pool_base, long pool_size) |
| static void | ft_black_set_mode (PRaster raster, unsigned long mode, const char *palette) |
| static int | ft_black_render (PRaster raster, const FT_Raster_Params *params) |