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)  

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

Go to the source code of this file.


static bit pbm_getbit ()
static bit pbm_getbit (FILE *file)
int pbm_readmagicnumber (FILE *file)
void pbm_readpbminitrest (FILE *file, int *colsP, int *rowsP)
void pbm_readpbminit (FILE *file, int *colsP, int *rowsP, int *formatP)
void pbm_readpbmrow (FILE *file, bit *bitrow, int cols, int format)
void pbm_readpbmrow_packed (FILE *const file, unsigned char *const packed_bits, const int cols, const int format)
bit ** pbm_readpbm (FILE *file, int *colsP, int *rowsP)

Function Documentation

◆ pbm_getbit() [1/2]

static bit pbm_getbit ( )

◆ pbm_getbit() [2/2]

static bit pbm_getbit ( FILE file)

Definition at line 18 of file libpbm2.c.

References ch, pbm_getc(), and pm_error.

◆ pbm_readmagicnumber()

int pbm_readmagicnumber ( FILE file)

Definition at line 36 of file libpbm2.c.

References EOF, getc, and pm_error.

◆ pbm_readpbm()

bit** pbm_readpbm ( FILE file,
int colsP,
int rowsP 

Definition at line 161 of file libpbm2.c.

References bits, format, pbm_allocarray, pbm_readpbminit(), pbm_readpbmrow(), and row.

◆ pbm_readpbminit()

void pbm_readpbminit ( FILE file,
int colsP,
int rowsP,
int formatP 

Definition at line 62 of file libpbm2.c.

References PBM_FORMAT_TYPE, pbm_readmagicnumber(), pbm_readpbminitrest(), PBM_TYPE, and pm_error.

◆ pbm_readpbminitrest()

void pbm_readpbminitrest ( FILE file,
int colsP,
int rowsP 

Definition at line 51 of file libpbm2.c.

References pbm_getint().

◆ pbm_readpbmrow()

void pbm_readpbmrow ( FILE file,
bit bitrow,
int  cols,
int  format 

Definition at line 82 of file libpbm2.c.

References bitshift, bP, col, cols, format, item, PBM_FORMAT, pbm_getbit(), pbm_getrawbyte(), pm_error, and RPBM_FORMAT.

◆ pbm_readpbmrow_packed()

void pbm_readpbmrow_packed ( FILE *const  file,
unsigned char *const  packed_bits,
const int  cols,
const int  format 

Definition at line 121 of file libpbm2.c.

References col, cols, feof, format, fread, mask, PBM_FORMAT, pbm_getbit(), pbm_packed_bytes, pm_error, and RPBM_FORMAT.