GO TO GO TO headers/exports description (below in this document) FILE close.c: image close and flush filbuf.c: support for getpix flsbuf.c: support for putpix name.c: name and colormap tag support open.c: open an image file for reading and writing pix.c: getpix and putpix rdwr.c: low-level writing and reading routines rle.c: run-length encoding support row.c: read and write rows of pixelsOther documents in this directory include:
NOTES ON MODULES IN LIBIMAGE.A
__________________________________________
______________________________________________________________
#include <stdio.h>
#include <stdlib.h>
#include "image.h"
int iclose(IMAGE *image)
int iflush(IMAGE *image)
______________________________________________________________
#include "image.h"
int ifilbuf(IMAGE *image)
______________________________________________________________
#include "image.h"
unsigned int iflsbuf(IMAGE *image, unsigned int c)
______________________________________________________________
#include <stdio.h>
#include <string.h>
#include "image.h"
void isetname(IMAGE *image, char *name)
void isetcolormap(IMAGE *image, int colormap)
______________________________________________________________
#include <stdio.h>
#include <stdlib.h>
#include "image.h"
IMAGE *iopen(char *file, char *mode, unsigned int type,
unsigned int dim, unsigned int xsize,
unsigned int ysize, unsigned int zsize)
IMAGE *fiopen(int f, char *mode, unsigned int type, unsigned int dim,
unsigned int xsize, unsigned int ysize, unsigned int zsize)
IMAGE *imgopen(int f, char *file, char *mode, unsigned int type,
unsigned int dim, unsigned int xsize, unsigned int ysize,
unsigned int zsize)
unsigned short *ibufalloc(IMAGE *image)
reverse( register unsigned int lwrd )
cvtshorts( register unsigned short buffer[], register int n )
cvtlongs( register int buffer[], register int nbuffer )
cvtimage( register int buffer[] )
i_errhdlr(char *fmt, a1, a2, a3, a4) /* most args currently used is 2 */
i_seterror(void (*func)())
______________________________________________________________
#include <stdio.h>
#include "image.h"
int getpix(IMAGE *image)
unsigned int putpix(IMAGE *image, unsigned int pix)
______________________________________________________________
#include <stdio.h>
#include "image.h"
unsigned int img_optseek(IMAGE *image, unsigned int offset)
unsigned int img_seek(IMAGE *image, unsigned int y, unsigned int z)
int img_badrow(IMAGE *image, unsigned int y, unsigned int z)
int img_write(IMAGE *image, char *buffer,int count)
int img_read(IMAGE *image, char *buffer, int count)
______________________________________________________________
#include <stdio.h>
#include "image.h"
int img_getrowsize(IMAGE *image)
void img_setrowsize(IMAGE *image, int cnt, int y, int z)
int img_rle_compact(unsigned short *expbuf, int ibpp,
unsigned short *rlebuf, int obpp, int cnt)
void img_rle_expand(unsigned short *rlebuf, int ibpp,
unsigned short *expbuf, int obpp)
______________________________________________________________
#include <stdio.h>
#include "image.h"
int putrow(IMAGE *image, unsigned short *buffer,
unsigned int y, unsigned int z)
int getrow(IMAGE *image, unsigned short *buffer,
unsigned int y, unsigned int z)