QtBase  v6.3.1
Classes | Macros | Typedefs | Functions | Variables
ftgrays.c File Reference
#include "ftgrays.h"
#include <freetype/internal/ftobjs.h>
#include <freetype/internal/ftdebug.h>
#include <freetype/internal/ftcalc.h>
#include <freetype/ftoutln.h>
#include "ftsmerrs.h"
Include dependency graph for ftgrays.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  TCell_
 
struct  TPixmap_
 
struct  gray_TWorker_
 
struct  gray_TRaster_
 

Macros

#define FT_COMPONENT   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 FT_ZERO(p)   FT_MEM_ZERO( p, sizeof ( *(p) ) )
 
#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   ( 1 << PIXEL_BITS )
 
#define TRUNC(x)   (TCoord)( (x) >> PIXEL_BITS )
 
#define FRACT(x)   (TCoord)( (x) & ( ONE_PIXEL - 1 ) )
 
#define UPSCALE(x)   ( (x) * ( ONE_PIXEL >> 6 ) )
 
#define DOWNSCALE(x)   ( (x) >> ( PIXEL_BITS - 6 ) )
 
#define FT_DIV_MOD(type, dividend, divisor, quotient, remainder)
 
#define FT_UDIVPREP(c, b)
 
#define FT_UDIV(a, b)
 
#define FT_MAX_GRAY_POOL   ( 2048 / sizeof ( TCell ) )
 
#define FT_MAX_GRAY_SPANS   10
 
#define ras   (*worker)
 

Typedefs

typedef long TPos
 
typedef int TCoord
 
typedef int TArea
 
typedef struct TCell_PCell
 
typedef struct TCell_ TCell
 
typedef struct TPixmap_ TPixmap
 
typedef struct gray_TWorker_ gray_TWorker
 
typedef struct gray_TWorker_gray_PWorker
 
typedef struct gray_TRaster_ gray_TRaster
 
typedef struct gray_TRaster_gray_PRaster
 

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
 
 if (ft_setjmp(ras.jump_buffer)==0)
 
 FT_TRACE7 (("band [%d..%d]: to be bisected\n", ras.min_ey, ras.max_ey))
 

Variables

int continued
 
 else
 
return error
 

Macro Definition Documentation

◆ DOWNSCALE

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

Definition at line 343 of file ftgrays.c.

◆ ErrRaster_Memory_Overflow

#define ErrRaster_Memory_Overflow   Smooth_Err_Out_Of_Memory

Definition at line 291 of file ftgrays.c.

◆ FRACT

#define FRACT (   x)    (TCoord)( (x) & ( ONE_PIXEL - 1 ) )

Definition at line 339 of file ftgrays.c.

◆ FT_COMPONENT

#define FT_COMPONENT   smooth

Definition at line 99 of file ftgrays.c.

◆ FT_DIV_MOD

#define FT_DIV_MOD (   type,
  dividend,
  divisor,
  quotient,
  remainder 
)
Value:
(quotient) = (type)( (dividend) / (divisor) ); \
(remainder) = (type)( (dividend) % (divisor) ); \
if ( (remainder) < 0 ) \
{ \
(quotient)--; \
(remainder) += (type)(divisor); \
} \
FT_END_STMNT
#define FT_BEGIN_STMNT
GLenum type
Definition: qopengl.h:270
GLuint divisor

Definition at line 354 of file ftgrays.c.

◆ FT_MAX_GRAY_POOL

#define FT_MAX_GRAY_POOL   ( 2048 / sizeof ( TCell ) )

Definition at line 431 of file ftgrays.c.

◆ FT_MAX_GRAY_SPANS

#define FT_MAX_GRAY_SPANS   10

Definition at line 435 of file ftgrays.c.

◆ FT_MEM_SET

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

Definition at line 298 of file ftgrays.c.

◆ FT_MEM_ZERO

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

Definition at line 302 of file ftgrays.c.

◆ FT_UDIV

#define FT_UDIV (   a,
  b 
)
Value:
(TCoord)( ( (unsigned long)( a ) * (unsigned long)( b ## _r ) ) >> \
( sizeof( long ) * FT_CHAR_BIT - PIXEL_BITS ) )
int TCoord
Definition: ftgrays.c:405
#define PIXEL_BITS
Definition: ftgrays.c:335
#define FT_CHAR_BIT
Definition: ftstdlib.h:61
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
[7]

Definition at line 390 of file ftgrays.c.

◆ FT_UDIVPREP

#define FT_UDIVPREP (   c,
  b 
)
Value:
long b ## _r = c ? (long)( FT_ULONG_MAX >> PIXEL_BITS ) / ( b ) \
: 0
#define FT_ULONG_MAX
Definition: ftstdlib.h:68
const GLubyte * c
Definition: qopenglext.h:12701

Definition at line 387 of file ftgrays.c.

◆ FT_ZERO

#define FT_ZERO (   p)    FT_MEM_ZERO( p, sizeof ( *(p) ) )

Definition at line 306 of file ftgrays.c.

◆ ONE_PIXEL

#define ONE_PIXEL   ( 1 << PIXEL_BITS )

Definition at line 337 of file ftgrays.c.

◆ PIXEL_BITS

#define PIXEL_BITS   8

Definition at line 335 of file ftgrays.c.

◆ ras

#define ras   (*worker)

Definition at line 481 of file ftgrays.c.

◆ RAS_ARG

#define RAS_ARG   gray_PWorker worker

Definition at line 318 of file ftgrays.c.

◆ RAS_ARG_

#define RAS_ARG_   gray_PWorker worker,

Definition at line 319 of file ftgrays.c.

◆ RAS_VAR

#define RAS_VAR   worker

Definition at line 321 of file ftgrays.c.

◆ RAS_VAR_

#define RAS_VAR_   worker,

Definition at line 322 of file ftgrays.c.

◆ Smooth_Err_Invalid_Mode

#define Smooth_Err_Invalid_Mode   Smooth_Err_Cannot_Render_Glyph

Definition at line 289 of file ftgrays.c.

◆ Smooth_Err_Memory_Overflow

#define Smooth_Err_Memory_Overflow   Smooth_Err_Out_Of_Memory

Definition at line 290 of file ftgrays.c.

◆ TRUNC

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

Definition at line 338 of file ftgrays.c.

◆ UPSCALE

#define UPSCALE (   x)    ( (x) * ( ONE_PIXEL >> 6 ) )

Definition at line 342 of file ftgrays.c.

Typedef Documentation

◆ gray_PRaster

typedef struct gray_TRaster_ * gray_PRaster

◆ gray_PWorker

typedef struct gray_TWorker_ * gray_PWorker

◆ gray_TRaster

typedef struct gray_TRaster_ gray_TRaster

◆ gray_TWorker

typedef struct gray_TWorker_ gray_TWorker

◆ PCell

typedef struct TCell_* PCell

Definition at line 409 of file ftgrays.c.

◆ TArea

typedef int TArea

Definition at line 406 of file ftgrays.c.

◆ TCell

typedef struct TCell_ TCell

◆ TCoord

typedef int TCoord

Definition at line 405 of file ftgrays.c.

◆ TPixmap

typedef struct TPixmap_ TPixmap

◆ TPos

typedef long TPos

Definition at line 404 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,
,
 
)

◆ FT_TRACE7()

FT_TRACE7 ( ("band [%d..%d]: to be bisected\n", ras.min_ey, ras.max_ey)  )
Here is the caller graph for this function:

◆ if()

if ( ft_setjmp(ras.jump_buffer)  = = 0)

Definition at line 1640 of file ftgrays.c.

Here is the call graph for this function:

Variable Documentation

◆ continued

int continued
Initial value:
{
int error
return error
Definition: ftgrays.c:1665

Definition at line 1635 of file ftgrays.c.

◆ else

else
Initial value:
{
error = FT_THROW( Memory_Overflow )
#define FT_THROW(e)
Definition: ftdebug.h:243

Definition at line 1657 of file ftgrays.c.

◆ error

return error

Definition at line 1665 of file ftgrays.c.