/**************************************************************************
 *{@C
 *      Copyright:      1988-2024 Paul Obermeier (obermeier@poSoft.de)
 *
 *      Module:         FileFormats
 *      Filename:       FF_ImageSgi.h
 *
 *      Author:         Paul Obermeier
 *
 *      Description:    Functions for reading and writing image files in
 *                      Silicon Graphics native image file format.
 *
 *      Additional documentation:
 *                      None.
 *
 **************************************************************************/

#ifndef __FF_IMAGESGI_H__
#define __FF_IMAGESGI_H__

#include "UT_Compat.h"
#include "FF_ImageSgiLib.h"

/* Supported SGI pixel file format versions */

#define str_int_version "int"
#define str_ext_version "ext"

#define SGI_int_magic   7531

/* Format dependent pixel file descriptor */

typedef struct {
    IMAGE *image;       /* Image struct in SGI format */
} sgifile;

/* Functions for reading and writing SGI RGB pixel files */

extern UT_Bool FF_ImgOpenWriteSgi (const char *, FF_ImgFileDesc *);
extern UT_Bool FF_ImgOpenReadSgi  (const char *, FF_ImgFileDesc *);

#endif /* __FF_IMAGESGI_H__ */
