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)  

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

Go to the source code of this file.

Functions

static void pbm_writepbmrowplain ()
 
static void pbm_writepbmrowraw ()
 
void pbm_writepbminit (FILE *file, int cols, int rows, int forceplain)
 
static void pbm_writepbmrowraw (FILE *file, bit *bitrow, int cols)
 
static void pbm_writepbmrowplain (FILE *file, bit *bitrow, int cols)
 
void pbm_writepbmrow (FILE *file, bit *bitrow, int cols, int forceplain)
 
void pbm_writepbmrow_packed (FILE *const file, const unsigned char *const packed_bits, const int cols, const int forceplain)
 
void pbm_writepbm (FILE *file, bit **bits, int cols, int rows, int forceplain)
 

Function Documentation

◆ pbm_writepbm()

void pbm_writepbm ( FILE file,
bit**  bits,
int  cols,
int  rows,
int  forceplain 
)

Definition at line 136 of file libpbm3.c.

References cols, pbm_writepbminit(), pbm_writepbmrow(), row, and rows.

Referenced by main(), and pgm_hist().

◆ pbm_writepbminit()

void pbm_writepbminit ( FILE file,
int  cols,
int  rows,
int  forceplain 
)

Definition at line 22 of file libpbm3.c.

References cols, fprintf, PBM_MAGIC1, PBM_MAGIC2, rows, and RPBM_MAGIC2.

Referenced by main(), output_pbm(), pbm_writepbm(), pnm_writepnminit(), and write_raw_pbm().

◆ pbm_writepbmrow()

void pbm_writepbmrow ( FILE file,
bit bitrow,
int  cols,
int  forceplain 
)

◆ pbm_writepbmrow_packed()

void pbm_writepbmrow_packed ( FILE *const  file,
const unsigned char *const  packed_bits,
const int  cols,
const int  forceplain 
)

◆ pbm_writepbmrowplain() [1/2]

static void pbm_writepbmrowplain ( )
static

◆ pbm_writepbmrowplain() [2/2]

static void pbm_writepbmrowplain ( FILE file,
bit bitrow,
int  cols 
)
static

Definition at line 70 of file libpbm3.c.

References bP, charcount, col, cols, putc, and void.

◆ pbm_writepbmrowraw() [1/2]

static void pbm_writepbmrowraw ( )
static

Referenced by pbm_writepbmrow().

◆ pbm_writepbmrowraw() [2/2]

static void pbm_writepbmrowraw ( FILE file,
bit bitrow,
int  cols 
)
static

Definition at line 40 of file libpbm3.c.

References bitshift, bP, col, cols, item, putc, and void.