#include <string.h>
#include <gandalf/image/io/sgi_io.h>
#include <gandalf/image/io/image_io.h>
#include <gandalf/image/image_gl_uint8.h>
#include <gandalf/image/image_gl_uint16.h>
#include <gandalf/image/image_rgb_uint8.h>
#include <gandalf/image/image_rgb_uint16.h>
#include <gandalf/image/image_rgba_uint8.h>
#include <gandalf/image/image_rgba_uint16.h>
#include <gandalf/common/misc_error.h>
Defines | |
#define | SGI_MAGIC_NUMBER_OFFSET 0 |
#define | SGI_STORAGE_OFFSET 2 |
#define | SGI_BPC_OFFSET 3 |
#define | SGI_DIMENSION_OFFSET 4 |
#define | SGI_XSIZE_OFFSET 6 |
#define | SGI_YSIZE_OFFSET 8 |
#define | SGI_ZSIZE_OFFSET 10 |
#define | SGI_PIXMIN_OFFSET 12 |
#define | SGI_PIXMAX_OFFSET 16 |
#define | SGI_COLOURMAP_OFFSET 104 |
#define | BIG_BUFFER_SIZE 530 |
Functions | |
Gan_Bool | gan_image_is_sgi (const unsigned char *magic_string, size_t length) |
Determines whether an image is a SGI image using the magic number. | |
Gan_Image * | gan_read_sgi_image_stream (FILE *infile, Gan_Image *image, const struct Gan_ImageReadControlStruct *ictrlstr, struct Gan_ImageHeaderStruct *header) |
Reads a RGB colour image file in SGI format from a stream. | |
Gan_Image * | gan_read_sgi_image (const char *filename, Gan_Image *image, const struct Gan_ImageReadControlStruct *ictrlstr, struct Gan_ImageHeaderStruct *header) |
Reads a RGB colour image file in SGI format. | |
void | gan_initialise_sgi_header_struct (Gan_SGIHeaderStruct *octrlstr) |
Initialises the output control structure for SGI files. | |
Gan_Bool | gan_write_sgi_image_stream (FILE *outfile, const Gan_Image *image, Gan_Bool new_file, const struct Gan_ImageWriteControlStruct *octrlstr) |
Writes a RGB colour image to a file stream in SGI format. | |
Gan_Bool | gan_write_sgi_image (const char *filename, const Gan_Image *image, const struct Gan_ImageWriteControlStruct *octrlstr) |
Writes a RGB colour image file in SGI format. |
Part of: Gandalf Library