#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include <getopt.h>
#include "greymap.h"
#include "bitmap_io.h"
#include "platform.h"
Go to the source code of this file.
Classes | |
struct | info_s |
Defines | |
#define | SAFE_MALLOC(var, n, typ) if ((var = (typ *)malloc((n)*sizeof(typ))) == NULL) goto malloc_error |
Typedefs | |
typedef double | double4 [4] |
typedef struct info_s | info_t |
Functions | |
static void | dopts (int ac, char *av[]) |
static int | highpass (greymap_t *gm, double lambda) |
static void * | interpolate_cubic (greymap_t *gm, int s, int bilevel, double c) |
static void * | interpolate_linear (greymap_t *gm, int s, int bilevel, double c) |
static int | license (FILE *f) |
int | main (int ac, char *av[]) |
static char * | make_outfilename (char *infile, char *ext) |
static void | my_fclose (FILE *f, char *filename) |
static FILE * | my_fopen_read (char *filename) |
static FILE * | my_fopen_write (char *filename) |
static void | process_file (FILE *fin, FILE *fout, char *infile, char *outfile) |
static int | usage (FILE *f) |
Variables | |
static info_t | info |
static struct option | longopts [] |
static char * | shortopts = "hvlo:xif:ns:13gt:" |
#define SAFE_MALLOC | ( | var, | |
n, | |||
typ | |||
) | if ((var = (typ *)malloc((n)*sizeof(typ))) == NULL) goto malloc_error |
Definition at line 24 of file mkbitmap.c.
typedef double double4[4] |
Definition at line 220 of file mkbitmap.c.
Definition at line 41 of file mkbitmap.c.
static void dopts | ( | int | ac, |
char * | av[] | ||
) | [static] |
Definition at line 480 of file mkbitmap.c.
Definition at line 47 of file mkbitmap.c.
static void* interpolate_cubic | ( | greymap_t * | gm, |
int | s, | ||
int | bilevel, | ||
double | c | ||
) | [static] |
Definition at line 222 of file mkbitmap.c.
static void* interpolate_linear | ( | greymap_t * | gm, |
int | s, | ||
int | bilevel, | ||
double | c | ||
) | [static] |
Definition at line 141 of file mkbitmap.c.
static int license | ( | FILE * | f | ) | [static] |
Definition at line 412 of file mkbitmap.c.
int main | ( | int | ac, |
char * | av[] | ||
) |
Definition at line 637 of file mkbitmap.c.
static char* make_outfilename | ( | char * | infile, |
char * | ext | ||
) | [static] |
Definition at line 606 of file mkbitmap.c.
static void my_fclose | ( | FILE * | f, |
char * | filename | ||
) | [static] |
Definition at line 598 of file mkbitmap.c.
static FILE* my_fopen_read | ( | char * | filename | ) | [static] |
Definition at line 582 of file mkbitmap.c.
static FILE* my_fopen_write | ( | char * | filename | ) | [static] |
Definition at line 590 of file mkbitmap.c.
static void process_file | ( | FILE * | fin, |
FILE * | fout, | ||
char * | infile, | ||
char * | outfile | ||
) | [static] |
Definition at line 334 of file mkbitmap.c.
static int usage | ( | FILE * | f | ) | [static] |
Definition at line 431 of file mkbitmap.c.
Definition at line 43 of file mkbitmap.c.
struct option longopts[] [static] |
{ {"help", 0, 0, 'h'}, {"version", 0, 0, 'v'}, {"license", 0, 0, 'l'}, {"output", 1, 0, 'o'}, {"reset", 0, 0, 'x'}, {"invert", 0, 0, 'i'}, {"filter", 1, 0, 'f'}, {"nofilter", 0, 0, 'n'}, {"scale", 1, 0, 's'}, {"linear", 0, 0, '1'}, {"cubic", 0, 0, '3'}, {"grey", 0, 0, 'g'}, {"threshold", 1, 0, 't'}, {0, 0, 0, 0} }
Definition at line 459 of file mkbitmap.c.
char* shortopts = "hvlo:xif:ns:13gt:" [static] |
Definition at line 476 of file mkbitmap.c.