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
gxvcommn.c File Reference
#include "gxvcommn.h"

Go to the source code of this file.

Macros

#define FT_COMPONENT   trace_gxvcommon
 
#define GXV_LOOKUP_VALUE_LOAD(P, SIGNSPEC)   ( P += 2, gxv_lookup_value_load( P - 2, SIGNSPEC ) )
 
#define GXV_UNITSIZE_VALIDATE(FORMAT, UNITSIZE, NUNITS, CORRECTSIZE)
 

Typedefs

typedef struct GXV_BinSrchHeader_ GXV_BinSrchHeader
 

Functions

 gxv_set_length_by_ushort_offset (FT_UShort *offset, FT_UShort **length, FT_UShort *buff, FT_UInt nmemb, FT_UShort limit, GXV_Validator valid)
 
 gxv_set_length_by_ulong_offset (FT_ULong *offset, FT_ULong **length, FT_ULong *buff, FT_UInt nmemb, FT_ULong limit, GXV_Validator valid)
 
 gxv_array_getlimits_byte (FT_Bytes table, FT_Bytes limit, FT_Byte *min, FT_Byte *max, GXV_Validator valid)
 
 gxv_array_getlimits_ushort (FT_Bytes table, FT_Bytes limit, FT_UShort *min, FT_UShort *max, GXV_Validator valid)
 
 gxv_BinSrchHeader_validate (FT_Bytes table, FT_Bytes limit, FT_UShort *unitSize_p, FT_UShort *nUnits_p, GXV_Validator valid)
 
 gxv_LookupTable_validate (FT_Bytes table, FT_Bytes limit, GXV_Validator valid)
 
 gxv_glyphid_validate (FT_UShort gid, GXV_Validator valid)
 
 gxv_ctlPoint_validate (FT_UShort gid, FT_Short ctl_point, GXV_Validator valid)
 
 gxv_sfntName_validate (FT_UShort name_index, FT_UShort min_index, FT_UShort max_index, GXV_Validator valid)
 
 gxv_StateTable_subtable_setup (FT_UShort table_size, FT_UShort classTable, FT_UShort stateArray, FT_UShort entryTable, FT_UShort *classTable_length_p, FT_UShort *stateArray_length_p, FT_UShort *entryTable_length_p, GXV_Validator valid)
 
 gxv_StateTable_validate (FT_Bytes table, FT_Bytes limit, GXV_Validator valid)
 
 gxv_XStateTable_subtable_setup (FT_ULong table_size, FT_ULong classTable, FT_ULong stateArray, FT_ULong entryTable, FT_ULong *classTable_length_p, FT_ULong *stateArray_length_p, FT_ULong *entryTable_length_p, GXV_Validator valid)
 
 gxv_XStateTable_validate (FT_Bytes table, FT_Bytes limit, GXV_Validator valid)
 
 gxv_odtect_add_range (FT_Bytes start, FT_ULong length, const FT_String *name, GXV_odtect_Range odtect)
 
 gxv_odtect_validate (GXV_odtect_Range odtect, GXV_Validator valid)
 

Macro Definition Documentation

◆ FT_COMPONENT

#define FT_COMPONENT   trace_gxvcommon

Definition at line 38 of file gxvcommn.c.

◆ GXV_LOOKUP_VALUE_LOAD

#define GXV_LOOKUP_VALUE_LOAD (   P,
  SIGNSPEC 
)    ( P += 2, gxv_lookup_value_load( P - 2, SIGNSPEC ) )

Definition at line 383 of file gxvcommn.c.

◆ GXV_UNITSIZE_VALIDATE

#define GXV_UNITSIZE_VALIDATE (   FORMAT,
  UNITSIZE,
  NUNITS,
  CORRECTSIZE 
)
Value:
if ( UNITSIZE != CORRECTSIZE ) \
{ \
FT_ERROR(( "unitSize=%d differs from" \
" expected unitSize=%d" \
" in LookupTable %s\n", \
UNITSIZE, CORRECTSIZE, FORMAT )); \
if ( UNITSIZE != 0 && NUNITS != 0 ) \
{ \
FT_ERROR(( " cannot validate anymore\n" )); \
FT_INVALID_FORMAT; \
} \
FT_ERROR(( " forcibly continues\n" )); \
} \
FT_END_STMNT
#define FT_ERROR(varformat)
Definition: ftdebug.h:181
if(!abbox) return FT_THROW(Invalid_Argument)

Definition at line 402 of file gxvcommn.c.

Typedef Documentation

◆ GXV_BinSrchHeader

typedef struct GXV_BinSrchHeader_ GXV_BinSrchHeader

Function Documentation

◆ gxv_array_getlimits_byte()

gxv_array_getlimits_byte ( FT_Bytes  table,
FT_Bytes  limit,
FT_Byte min,
FT_Byte max,
GXV_Validator  valid 
)

Definition at line 181 of file gxvcommn.c.

References FT_LOCAL_DEF, FT_MAX, FT_MIN, FT_NEXT_BYTE, GXV_LIMIT_CHECK, max, and vl::min().

◆ gxv_array_getlimits_ushort()

gxv_array_getlimits_ushort ( FT_Bytes  table,
FT_Bytes  limit,
FT_UShort min,
FT_UShort max,
GXV_Validator  valid 
)

Definition at line 210 of file gxvcommn.c.

References FT_MAX, FT_MIN, FT_NEXT_USHORT, GXV_LIMIT_CHECK, max, and vl::min().

◆ gxv_BinSrchHeader_validate()

gxv_BinSrchHeader_validate ( FT_Bytes  table,
FT_Bytes  limit,
FT_UShort unitSize_p,
FT_UShort nUnits_p,
GXV_Validator  valid 
)

Definition at line 328 of file gxvcommn.c.

References FT_NEXT_USHORT, GXV_LIMIT_CHECK, GXV_NAME_ENTER, and GXV_TRACE.

◆ gxv_ctlPoint_validate()

gxv_ctlPoint_validate ( FT_UShort  gid,
FT_Short  ctl_point,
GXV_Validator  valid 
)

◆ gxv_glyphid_validate()

gxv_glyphid_validate ( FT_UShort  gid,
GXV_Validator  valid 
)

◆ gxv_LookupTable_validate()

gxv_LookupTable_validate ( FT_Bytes  table,
FT_Bytes  limit,
GXV_Validator  valid 
)

Definition at line 755 of file gxvcommn.c.

◆ gxv_odtect_add_range()

gxv_odtect_add_range ( FT_Bytes  start,
FT_ULong  length,
const FT_String name,
GXV_odtect_Range  odtect 
)

Definition at line 1702 of file gxvcommn.c.

References FT_LOCAL_DEF.

Referenced by gxv_just_validate().

◆ gxv_odtect_validate()

gxv_odtect_validate ( GXV_odtect_Range  odtect,
GXV_Validator  valid 
)

Definition at line 1715 of file gxvcommn.c.

References GXV_NAME_ENTER, and i.

◆ gxv_set_length_by_ulong_offset()

gxv_set_length_by_ulong_offset ( FT_ULong offset,
FT_ULong **  length,
FT_ULong buff,
FT_UInt  nmemb,
FT_ULong  limit,
GXV_Validator  valid 
)

Definition at line 128 of file gxvcommn.c.

References ft_qsort, and i.

Referenced by gxv_XStateTable_subtable_setup().

◆ gxv_set_length_by_ushort_offset()

gxv_set_length_by_ushort_offset ( FT_UShort offset,
FT_UShort **  length,
FT_UShort buff,
FT_UInt  nmemb,
FT_UShort  limit,
GXV_Validator  valid 
)

Definition at line 63 of file gxvcommn.c.

References ft_qsort, and i.

Referenced by gxv_StateTable_subtable_setup().

◆ gxv_sfntName_validate()

gxv_sfntName_validate ( FT_UShort  name_index,
FT_UShort  min_index,
FT_UShort  max_index,
GXV_Validator  valid 
)

◆ gxv_StateTable_subtable_setup()

gxv_StateTable_subtable_setup ( FT_UShort  table_size,
FT_UShort  classTable,
FT_UShort  stateArray,
FT_UShort  entryTable,
FT_UShort classTable_length_p,
FT_UShort stateArray_length_p,
FT_UShort entryTable_length_p,
GXV_Validator  valid 
)

◆ gxv_StateTable_validate()

gxv_StateTable_validate ( FT_Bytes  table,
FT_Bytes  limit,
GXV_Validator  valid 
)

◆ gxv_XStateTable_subtable_setup()

gxv_XStateTable_subtable_setup ( FT_ULong  table_size,
FT_ULong  classTable,
FT_ULong  stateArray,
FT_ULong  entryTable,
FT_ULong classTable_length_p,
FT_ULong stateArray_length_p,
FT_ULong entryTable_length_p,
GXV_Validator  valid 
)

Definition at line 1316 of file gxvcommn.c.

References gxv_set_length_by_ulong_offset().

Referenced by gxv_XStateTable_validate().

◆ gxv_XStateTable_validate()

gxv_XStateTable_validate ( FT_Bytes  table,
FT_Bytes  limit,
GXV_Validator  valid 
)