w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

pbmto4425.c File Reference
#include "pbm.h"
Include dependency graph for pbmto4425.c:

Go to the source code of this file.

Macros

#define max(a, b)   ((a) > (b) ? (a) : (b))
 

Functions

static void init_map ()
 
static void fill_map ()
 
static void set_vmap ()
 
static void print_map ()
 
int main (int argc, argv)
 
static void fill_map (FILE *pbmfp)
 
static void set_vmap (int x, int y)
 

Variables

static char bit_table [2][3]
 
static int vmap_width
 
static int vmap_height
 
static int xres
 
static int yres
 
static char * vmap
 

Macro Definition Documentation

◆ max

#define max (   a,
  b 
)    ((a) > (b) ? (a) : (b))

Definition at line 11 of file pbmto4425.c.

Function Documentation

◆ fill_map() [1/2]

static void fill_map ( )
static

Referenced by main().

◆ fill_map() [2/2]

static void fill_map ( FILE pbmfp)
static

Definition at line 107 of file pbmto4425.c.

References cols, pbm_readpbm(), PBM_WHITE, rows, set_vmap(), cordic::x, xres, y, and yres.

◆ init_map()

static void init_map ( void  )
static

Definition at line 91 of file pbmto4425.c.

References vmap, vmap_height, vmap_width, cordic::x, and y.

Referenced by main(), and yyparse().

◆ main()

◆ print_map()

static void print_map ( void  )
static

Definition at line 144 of file pbmto4425.c.

References BUFSIZ, fputs, malloc, NULL, pm_message, setbuf(), fc-lang::stdout, vmap, vmap_height, vmap_width, cordic::x, and y.

Referenced by main().

◆ set_vmap() [1/2]

static void set_vmap ( )
static

Referenced by fill_map().

◆ set_vmap() [2/2]

static void set_vmap ( int  x,
int  y 
)
static

Definition at line 131 of file pbmto4425.c.

References bit_table, vmap, vmap_width, cordic::x, and y.

Variable Documentation

◆ bit_table

char bit_table[2][3]
static
Initial value:
= {
{1, 4, 0x10},
{2, 8, 0x40}
}

Definition at line 13 of file pbmto4425.c.

Referenced by set_vmap().

◆ vmap

char* vmap
static

Definition at line 24 of file pbmto4425.c.

Referenced by consolidateGlyphHints(), init_map(), main(), print_map(), and set_vmap().

◆ vmap_height

int vmap_height
static

Definition at line 19 of file pbmto4425.c.

Referenced by init_map(), main(), and print_map().

◆ vmap_width

int vmap_width
static

Definition at line 18 of file pbmto4425.c.

Referenced by init_map(), main(), print_map(), and set_vmap().

◆ xres

◆ yres