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 | Functions
pshalgo.c File Reference
#include <ft2build.h>
#include "pshalgo.h"
#include "pshnterr.h"

Go to the source code of this file.

Macros

#define FT_COMPONENT   trace_pshalgo2
 
#define COMPUTE_INFLEXS   /* compute inflection points to optimize `S' */
 
#define STRONGER   /* slightly increase the contrast of smooth */
 
#define PSH_ZONE_MIN   -3200000L
 
#define PSH_ZONE_MAX   +3200000L
 
#define xxDEBUG_ZONES
 
#define psh_print_zone(x)   do { } while ( 0 )
 
#define psh_corner_is_flat   ft_corner_is_flat
 
#define psh_corner_orientation   ft_corner_orientation
 
#define PSH_STRONG_THRESHOLD   32
 
#define PSH_STRONG_THRESHOLD_MAXIMUM   30
 
#define PSH_MAX_STRONG_INTERNAL   16
 

Functions

FT_Error ps_hints_apply (PS_Hints ps_hints, FT_Outline *outline, PSH_Globals globals, FT_Render_Mode hint_mode)
 

Macro Definition Documentation

◆ COMPUTE_INFLEXS

#define COMPUTE_INFLEXS   /* compute inflection points to optimize `S' */

Definition at line 39 of file pshalgo.c.

◆ FT_COMPONENT

#define FT_COMPONENT   trace_pshalgo2

Definition at line 29 of file pshalgo.c.

◆ psh_corner_is_flat

#define psh_corner_is_flat   ft_corner_is_flat

Definition at line 930 of file pshalgo.c.

◆ psh_corner_orientation

#define psh_corner_orientation   ft_corner_orientation

Definition at line 931 of file pshalgo.c.

◆ PSH_MAX_STRONG_INTERNAL

#define PSH_MAX_STRONG_INTERNAL   16

Definition at line 1875 of file pshalgo.c.

◆ psh_print_zone

#define psh_print_zone (   x)    do { } while ( 0 )

Definition at line 915 of file pshalgo.c.

◆ PSH_STRONG_THRESHOLD

#define PSH_STRONG_THRESHOLD   32

Definition at line 1661 of file pshalgo.c.

◆ PSH_STRONG_THRESHOLD_MAXIMUM

#define PSH_STRONG_THRESHOLD_MAXIMUM   30

Definition at line 1664 of file pshalgo.c.

◆ PSH_ZONE_MAX

#define PSH_ZONE_MAX   +3200000L

Definition at line 894 of file pshalgo.c.

◆ PSH_ZONE_MIN

#define PSH_ZONE_MIN   -3200000L

Definition at line 893 of file pshalgo.c.

◆ STRONGER

#define STRONGER   /* slightly increase the contrast of smooth */

Definition at line 41 of file pshalgo.c.

◆ xxDEBUG_ZONES

#define xxDEBUG_ZONES

Definition at line 896 of file pshalgo.c.

Function Documentation

◆ ps_hints_apply()

FT_Error ps_hints_apply ( PS_Hints  ps_hints,
FT_Outline outline,
PSH_Globals  globals,
FT_Render_Mode  hint_mode 
)

Definition at line 2180 of file pshalgo.c.

References error, FT_Err_Ok, FT_Outline_::n_contours, and FT_Outline_::n_points.