Table of Contents
im_raw2vips - wrap a raw binary file inside an IMAGE descriptor
#include
<vips/vips.h>
int
im_raw2vips( const char *filename, IMAGE *out,
int width, int height, int bpp, int offset )
im_raw2vips(3)
mmaps the file named, setting image out so
that access to that image will read from the file. The parameters specify
the image width, height, bytes per pixel and offset in bytes from the start
of the file.
Use functions like im_copy_morph(3)
to set the pixel type,
byte ordering and so on.
The functions return NULL on error.
im_copy_morph(3)
, im_copy_swap(3)
.
Imperial College, 2005
Table of Contents