Classes | Defines | Typedefs | Functions | Variables
bitmap_io.c File Reference
#include <stdio.h>
#include "bitmap.h"
Include dependency graph for bitmap_io.c:

Go to the source code of this file.

Classes

struct  bmp_info_s

Defines

#define INTBITS   (8*sizeof(int))
#define TRY(x)   if (x) goto try_error
#define TRY_EOF(x)   if (x) goto eof

Typedefs

typedef struct bmp_info_s bmp_info_t

Functions

int bm_print (FILE *f, potrace_bitmap_t *bm)
int bm_read (FILE *f, double threshold, potrace_bitmap_t **bmp)
static int bm_readbody_bmp (FILE *f, double threshold, potrace_bitmap_t **bmp)
static int bm_readbody_pnm (FILE *f, double threshold, potrace_bitmap_t **bmp, int magic)
void bm_writepbm (FILE *f, potrace_bitmap_t *bm)
static int bmp_forward (FILE *f, int pos)
static int bmp_pad (FILE *f)
static void bmp_pad_reset (void)
static int bmp_readint (FILE *f, int n, unsigned int *p)
static int fgetc_ws (FILE *f)
static int readbit (FILE *f)
static int readnum (FILE *f)

Variables

char * bm_read_error = NULL
static int bmp_count = 0
static int bmp_pos = 0

Define Documentation

#define INTBITS   (8*sizeof(int))

Definition at line 13 of file bitmap_io.c.

#define TRY (   x)    if (x) goto try_error

Definition at line 416 of file bitmap_io.c.

#define TRY_EOF (   x)    if (x) goto eof

Definition at line 417 of file bitmap_io.c.


Typedef Documentation

typedef struct bmp_info_s bmp_info_t

Definition at line 352 of file bitmap_io.c.


Function Documentation

int bm_print ( FILE *  f,
potrace_bitmap_t bm 
)

Definition at line 760 of file bitmap_io.c.

int bm_read ( FILE *  f,
double  threshold,
potrace_bitmap_t **  bmp 
)

Definition at line 112 of file bitmap_io.c.

static int bm_readbody_bmp ( FILE *  f,
double  threshold,
potrace_bitmap_t **  bmp 
) [static]

Definition at line 426 of file bitmap_io.c.

static int bm_readbody_pnm ( FILE *  f,
double  threshold,
potrace_bitmap_t **  bmp,
int  magic 
) [static]

Definition at line 138 of file bitmap_io.c.

void bm_writepbm ( FILE *  f,
potrace_bitmap_t bm 
)

Definition at line 738 of file bitmap_io.c.

static int bmp_forward ( FILE *  f,
int  pos 
) [static]

Definition at line 402 of file bitmap_io.c.

static int bmp_pad ( FILE *  f) [static]

Definition at line 386 of file bitmap_io.c.

static void bmp_pad_reset ( void  ) [static]

Definition at line 380 of file bitmap_io.c.

static int bmp_readint ( FILE *  f,
int  n,
unsigned int *  p 
) [static]

Definition at line 361 of file bitmap_io.c.

static int fgetc_ws ( FILE *  f) [static]

Definition at line 23 of file bitmap_io.c.

static int readbit ( FILE *  f) [static]

Definition at line 83 of file bitmap_io.c.

static int readnum ( FILE *  f) [static]

Definition at line 48 of file bitmap_io.c.


Variable Documentation

Definition at line 110 of file bitmap_io.c.

int bmp_count = 0 [static]

Definition at line 356 of file bitmap_io.c.

int bmp_pos = 0 [static]

Definition at line 357 of file bitmap_io.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


portrait_painter
Author(s): Niklas Meinzer, Ina Baumgarten
autogenerated on Wed Dec 26 2012 16:00:43