#include #include #include "../pnm.h" #include "../mem.h" static void usage (char *progname) { printf ("\n" "usage: %s \n" "\n" " where is the input filename template\n" " and is the output filename template" " (e.g. image%%03d.ppm)\n" "\n", progname); exit (-1); } /** * w in bytes ( == width * channels) */ static void write_even_scanlines (uint8_t *in, uint8_t *out, int w, int h) { uint8_t *prev, *next, *this; int i, j; for (i=0; i