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)  

pnmtops.c File Reference
#include <string.h>
#include "pnm.h"
Include dependency graph for pnmtops.c:

Go to the source code of this file.

Macros

#define MARGIN   0.95
 

Functions

static void putinit ()
 
static void putitem ()
 
static void putxelval ()
 
static void putrest ()
 
static void rleputbuffer ()
 
static void rleputitem ()
 
static void rleputxelval ()
 
static void rleflush ()
 
static void rleputrest ()
 
int main (int argc, argv)
 
static void putinit (char *name, int cols, int rows, int padright, int bps, float scale, int dpi, int pagewid, int pagehgt, int format, int turnflag, int turnokflag, int rleflag, int center)
 
static void putxelval (xelval xv)
 
static void rleputxelval (xelval xv)
 

Variables

static int bitspersample
 
static int item
 
static int bitsperitem
 
static int bitshift
 
static int itemsperline
 
static int items
 
static int rleitem
 
static int rlebitsperitem
 
static int rlebitshift
 
static int repeat
 
static int itembuf [128]
 
static int count
 
static int repeatitem
 
static int repeatcount
 

Macro Definition Documentation

◆ MARGIN

#define MARGIN   0.95

Definition at line 21 of file pnmtops.c.

Function Documentation

◆ main()

◆ putinit() [1/2]

static void putinit ( )
static

Referenced by main().

◆ putinit() [2/2]

static void putinit ( char*  name,
int  cols,
int  rows,
int  padright,
int  bps,
float  scale,
int  dpi,
int  pagewid,
int  pagehgt,
int  format,
int  turnflag,
int  turnokflag,
int  rleflag,
int  center 
)
static

◆ putitem()

static void putitem ( )
static

Definition at line 386 of file pnmtops.c.

References bitshift, bitsperitem, bitspersample, item, items, and itemsperline.

Referenced by putrest(), putxelval(), and rleputbuffer().

◆ putrest()

static void putrest ( )
static

Definition at line 420 of file pnmtops.c.

References bitsperitem, printf(), and putitem().

Referenced by main().

◆ putxelval() [1/2]

static void putxelval ( )
static

Referenced by main().

◆ putxelval() [2/2]

static void putxelval ( xelval  xv)
static

Definition at line 408 of file pnmtops.c.

References bitshift, bitsperitem, bitspersample, item, and putitem().

◆ rleflush()

static void rleflush ( )
static

Definition at line 541 of file pnmtops.c.

References count, rlebitsperitem, rleputbuffer(), and rleputitem().

Referenced by main(), and rleputrest().

◆ rleputbuffer()

static void rleputbuffer ( )
static

Definition at line 431 of file pnmtops.c.

References count, i, item, itembuf, putitem(), repeat, and repeatitem.

Referenced by rleflush(), and rleputitem().

◆ rleputitem()

static void rleputitem ( )
static

Definition at line 457 of file pnmtops.c.

References bitspersample, count, i, itembuf, repeat, repeatcount, repeatitem, rlebitshift, rlebitsperitem, rleitem, and rleputbuffer().

Referenced by rleflush(), and rleputxelval().

◆ rleputrest()

static void rleputrest ( )
static

Definition at line 550 of file pnmtops.c.

References printf(), and rleflush().

Referenced by main().

◆ rleputxelval() [1/2]

static void rleputxelval ( )
static

Referenced by main().

◆ rleputxelval() [2/2]

static void rleputxelval ( xelval  xv)
static

Definition at line 529 of file pnmtops.c.

References bitspersample, rlebitshift, rlebitsperitem, rleitem, and rleputitem().

Variable Documentation

◆ bitshift

int bitshift
static

Definition at line 228 of file pnmtops.c.

Referenced by putinit(), putitem(), and putxelval().

◆ bitsperitem

int bitsperitem
static

Definition at line 228 of file pnmtops.c.

Referenced by putinit(), putitem(), putrest(), and putxelval().

◆ bitspersample

int bitspersample
static

Definition at line 228 of file pnmtops.c.

Referenced by putinit(), putitem(), putxelval(), rleputitem(), and rleputxelval().

◆ count

int count
static

Definition at line 230 of file pnmtops.c.

Referenced by putinit(), rleflush(), rleputbuffer(), and rleputitem().

◆ item

int item
static

Definition at line 228 of file pnmtops.c.

Referenced by putinit(), putitem(), putxelval(), and rleputbuffer().

◆ itembuf

int itembuf[128]
static

Definition at line 230 of file pnmtops.c.

Referenced by rleputbuffer(), and rleputitem().

◆ items

int items
static

Definition at line 228 of file pnmtops.c.

Referenced by putinit(), and putitem().

◆ itemsperline

int itemsperline
static

Definition at line 228 of file pnmtops.c.

Referenced by putinit(), and putitem().

◆ repeat

◆ repeatcount

int repeatcount
static

Definition at line 230 of file pnmtops.c.

Referenced by rleputitem().

◆ repeatitem

int repeatitem
static

Definition at line 230 of file pnmtops.c.

Referenced by rleputbuffer(), and rleputitem().

◆ rlebitshift

int rlebitshift
static

Definition at line 229 of file pnmtops.c.

Referenced by putinit(), rleputitem(), and rleputxelval().

◆ rlebitsperitem

int rlebitsperitem
static

Definition at line 229 of file pnmtops.c.

Referenced by putinit(), rleflush(), rleputitem(), and rleputxelval().

◆ rleitem

int rleitem
static

Definition at line 229 of file pnmtops.c.

Referenced by putinit(), rleputitem(), and rleputxelval().