9fb789dc78
This updates NBIS to its latest 5.0.0 version, dated 04/03/2015, from a 1.x version, dated 2007. Original sources are available at: https://www.nist.gov/itl/iad/image-group/products-and-services/image-group-open-source-server-nigos#Releases And full change log at: https://www.nist.gov/sites/default/files/documents/2016/12/14/changelog.txt
98 lines
4.3 KiB
C
98 lines
4.3 KiB
C
/*******************************************************************************
|
|
|
|
License:
|
|
This software and/or related materials was developed at the National Institute
|
|
of Standards and Technology (NIST) by employees of the Federal Government
|
|
in the course of their official duties. Pursuant to title 17 Section 105
|
|
of the United States Code, this software is not subject to copyright
|
|
protection and is in the public domain.
|
|
|
|
This software and/or related materials have been determined to be not subject
|
|
to the EAR (see Part 734.3 of the EAR for exact details) because it is
|
|
a publicly available technology and software, and is freely distributed
|
|
to any interested party with no licensing requirements. Therefore, it is
|
|
permissible to distribute this software as a free download from the internet.
|
|
|
|
Disclaimer:
|
|
This software and/or related materials was developed to promote biometric
|
|
standards and biometric technology testing for the Federal Government
|
|
in accordance with the USA PATRIOT Act and the Enhanced Border Security
|
|
and Visa Entry Reform Act. Specific hardware and software products identified
|
|
in this software were used in order to perform the software development.
|
|
In no case does such identification imply recommendation or endorsement
|
|
by the National Institute of Standards and Technology, nor does it imply that
|
|
the products and equipment identified are necessarily the best available
|
|
for the purpose.
|
|
|
|
This software and/or related materials are provided "AS-IS" without warranty
|
|
of any kind including NO WARRANTY OF PERFORMANCE, MERCHANTABILITY,
|
|
NO WARRANTY OF NON-INFRINGEMENT OF ANY 3RD PARTY INTELLECTUAL PROPERTY
|
|
or FITNESS FOR A PARTICULAR PURPOSE or for any purpose whatsoever, for the
|
|
licensed product, however used. In no event shall NIST be liable for any
|
|
damages and/or costs, including but not limited to incidental or consequential
|
|
damages of any kind, including economic damage or injury to property and lost
|
|
profits, regardless of whether NIST shall be advised, have reason to know,
|
|
or in fact shall know of the possibility.
|
|
|
|
By using this software, you agree to bear all risk relating to quality,
|
|
use and performance of the software and/or related materials. You agree
|
|
to hold the Government harmless from any claim arising from your use
|
|
of the software.
|
|
|
|
*******************************************************************************/
|
|
|
|
|
|
#ifndef _SUNRAST_H
|
|
#define _SUNRAST_H
|
|
|
|
/************************************************************/
|
|
/* File Name: Sunrast.h */
|
|
/* Package: Sun Rasterfile I/O */
|
|
/* Author: Michael D. Garris */
|
|
/* Date: 8/19/99 */
|
|
/* Updated: 03/16/2005 by MDG */
|
|
/* */
|
|
/************************************************************/
|
|
|
|
/* Contains header information related to Sun Rasterfile images. */
|
|
|
|
typedef struct sunrasterhdr {
|
|
int magic; /* magic number */
|
|
int width; /* width (in pixels) of image */
|
|
int height; /* height (in pixels) of image */
|
|
int depth; /* depth (1, 8, or 24 bits) of pixel */
|
|
int raslength; /* length (in bytes) of image */
|
|
int rastype; /* type of file; see SUN_* below */
|
|
int maptype; /* type of colormap; see MAP_* below */
|
|
int maplength; /* length (bytes) of following map */
|
|
/* color map follows for maplength bytes, followed by image */
|
|
} SUNHEAD;
|
|
|
|
#define SUN_MAGIC 0x59a66a95
|
|
|
|
/* Sun supported ras_type's */
|
|
#define SUN_STANDARD 1 /* Raw pixrect image in 68000 byte order */
|
|
#define SUN_RUN_LENGTH 2 /* Run-length compression of bytes */
|
|
#define SUN_FORMAT_RGB 3 /* XRGB or RGB instead of XBGR or BGR */
|
|
#define SUN_FORMAT_TIFF 4 /* tiff <-> standard rasterfile */
|
|
#define SUN_FORMAT_IFF 5 /* iff (TAAC format) <-> standard rasterfile */
|
|
|
|
/* Sun supported maptype's */
|
|
#define MAP_RAW 2
|
|
#define MAP_NONE 0 /* maplength is expected to be 0 */
|
|
#define MAP_EQUAL_RGB 1 /* red[maplength/3],green[],blue[] */
|
|
|
|
/*
|
|
* NOTES:
|
|
* Each line of a bitmap image should be rounded out to a multiple
|
|
* of 16 bits.
|
|
*/
|
|
|
|
/* sunrast.c */
|
|
extern int ReadSunRaster(const char *, SUNHEAD **, unsigned char **, int *,
|
|
unsigned char **, int *, int *, int *, int *);
|
|
extern int WriteSunRaster(char *, unsigned char *, const int, const int,
|
|
const int);
|
|
|
|
#endif
|