Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Macros | Typedefs | Functions
ftgrays.c File Reference
#include <ft2build.h>
#include "ftgrays.h"
#include "ftsmerrs.h"
#include "ftspic.h"

Go to the source code of this file.

Macros

#define FT_COMPONENT   trace_smooth
 
#define Smooth_Err_Invalid_Mode   Smooth_Err_Cannot_Render_Glyph
 
#define Smooth_Err_Memory_Overflow   Smooth_Err_Out_Of_Memory
 
#define ErrRaster_Memory_Overflow   Smooth_Err_Out_Of_Memory
 
#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 RAS_ARG   gray_PWorker worker
 
#define RAS_ARG_   gray_PWorker worker,
 
#define RAS_VAR   worker
 
#define RAS_VAR_   worker,
 
#define PIXEL_BITS   8
 
#define ONE_PIXEL   ( 1L << PIXEL_BITS )
 
#define PIXEL_MASK   ( -1L << PIXEL_BITS )
 
#define TRUNC(x)   ( (TCoord)( (x) >> PIXEL_BITS ) )
 
#define SUBPIXELS(x)   ( (TPos)(x) << PIXEL_BITS )
 
#define FLOOR(x)   ( (x) & -ONE_PIXEL )
 
#define CEILING(x)   ( ( (x) + ONE_PIXEL - 1 ) & -ONE_PIXEL )
 
#define ROUND(x)   ( ( (x) + ONE_PIXEL / 2 ) & -ONE_PIXEL )
 
#define UPSCALE(x)   ( (x) << ( PIXEL_BITS - 6 ) )
 
#define DOWNSCALE(x)   ( (x) >> ( PIXEL_BITS - 6 ) )
 
#define FT_MAX_GRAY_SPANS   32
 
#define ras   (*worker)
 

Typedefs

typedef long TCoord
 
typedef long TPos
 
typedef int TArea
 
typedef struct TCell_ * PCell
 
typedef struct TCell_ TCell
 
typedef struct gray_TWorker_ gray_TWorker
 
typedef struct gray_TWorker_ * gray_PWorker
 
typedef struct gray_TRaster_ gray_TRaster
 
typedef struct gray_TRaster_ * gray_PRaster
 
typedef struct gray_TBand_ gray_TBand
 

Functions

 FT_DEFINE_OUTLINE_FUNCS (func_interface,(FT_Outline_MoveTo_Func) gray_move_to,(FT_Outline_LineTo_Func) gray_line_to,(FT_Outline_ConicTo_Func) gray_conic_to,(FT_Outline_CubicTo_Func) gray_cubic_to, 0, 0) static int gray_convert_glyph_inner(RAS_ARG)
 

Macro Definition Documentation

◆ CEILING

#define CEILING (   x)    ( ( (x) + ONE_PIXEL - 1 ) & -ONE_PIXEL )

Definition at line 301 of file ftgrays.c.

◆ DOWNSCALE

#define DOWNSCALE (   x)    ( (x) >> ( PIXEL_BITS - 6 ) )

Definition at line 306 of file ftgrays.c.

◆ ErrRaster_Memory_Overflow

#define ErrRaster_Memory_Overflow   Smooth_Err_Out_Of_Memory

Definition at line 249 of file ftgrays.c.

◆ FLOOR

#define FLOOR (   x)    ( (x) & -ONE_PIXEL )

Definition at line 300 of file ftgrays.c.

◆ FT_COMPONENT

#define FT_COMPONENT   trace_smooth

Definition at line 91 of file ftgrays.c.

◆ FT_MAX_GRAY_SPANS

#define FT_MAX_GRAY_SPANS   32

Definition at line 346 of file ftgrays.c.

◆ FT_MEM_SET

#define FT_MEM_SET (   d,
  s,
  c 
)    ft_memset( d, s, c )

Definition at line 256 of file ftgrays.c.

◆ FT_MEM_ZERO

#define FT_MEM_ZERO (   dest,
  count 
)    FT_MEM_SET( dest, 0, count )

Definition at line 260 of file ftgrays.c.

◆ ONE_PIXEL

#define ONE_PIXEL   ( 1L << PIXEL_BITS )

Definition at line 296 of file ftgrays.c.

◆ PIXEL_BITS

#define PIXEL_BITS   8

Definition at line 289 of file ftgrays.c.

◆ PIXEL_MASK

#define PIXEL_MASK   ( -1L << PIXEL_BITS )

Definition at line 297 of file ftgrays.c.

◆ ras

#define ras   (*worker)

Definition at line 410 of file ftgrays.c.

◆ RAS_ARG

#define RAS_ARG   gray_PWorker worker

Definition at line 272 of file ftgrays.c.

◆ RAS_ARG_

#define RAS_ARG_   gray_PWorker worker,

Definition at line 273 of file ftgrays.c.

◆ RAS_VAR

#define RAS_VAR   worker

Definition at line 275 of file ftgrays.c.

◆ RAS_VAR_

#define RAS_VAR_   worker,

Definition at line 276 of file ftgrays.c.

◆ ROUND

#define ROUND (   x)    ( ( (x) + ONE_PIXEL / 2 ) & -ONE_PIXEL )

Definition at line 302 of file ftgrays.c.

◆ Smooth_Err_Invalid_Mode

#define Smooth_Err_Invalid_Mode   Smooth_Err_Cannot_Render_Glyph

Definition at line 247 of file ftgrays.c.

◆ Smooth_Err_Memory_Overflow

#define Smooth_Err_Memory_Overflow   Smooth_Err_Out_Of_Memory

Definition at line 248 of file ftgrays.c.

◆ SUBPIXELS

#define SUBPIXELS (   x)    ( (TPos)(x) << PIXEL_BITS )

Definition at line 299 of file ftgrays.c.

◆ TRUNC

#define TRUNC (   x)    ( (TCoord)( (x) >> PIXEL_BITS ) )

Definition at line 298 of file ftgrays.c.

◆ UPSCALE

#define UPSCALE (   x)    ( (x) << ( PIXEL_BITS - 6 ) )

Definition at line 305 of file ftgrays.c.

Typedef Documentation

◆ gray_PRaster

typedef struct gray_TRaster_ * gray_PRaster

◆ gray_PWorker

typedef struct gray_TWorker_ * gray_PWorker

◆ gray_TBand

typedef struct gray_TBand_ gray_TBand

◆ gray_TRaster

typedef struct gray_TRaster_ gray_TRaster

◆ gray_TWorker

typedef struct gray_TWorker_ gray_TWorker

◆ PCell

typedef struct TCell_* PCell

Definition at line 349 of file ftgrays.c.

◆ TArea

typedef int TArea

Definition at line 339 of file ftgrays.c.

◆ TCell

typedef struct TCell_ TCell

◆ TCoord

typedef long TCoord

Definition at line 322 of file ftgrays.c.

◆ TPos

typedef long TPos

Definition at line 323 of file ftgrays.c.

Function Documentation

◆ FT_DEFINE_OUTLINE_FUNCS()

FT_DEFINE_OUTLINE_FUNCS ( func_interface  ,
(FT_Outline_MoveTo_Func gray_move_to,
(FT_Outline_LineTo_Func gray_line_to,
(FT_Outline_ConicTo_Func gray_conic_to,
(FT_Outline_CubicTo_Func gray_cubic_to,
,
 
)

Definition at line 1744 of file ftgrays.c.