Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
il_sgi.h
Package: devil-1.7.99.tar.gz [view]
Upload User: wmy0603
Upload Date: 2022-05-02
Package Size: 1808k
Code Size: 2k
Category:
Compress-Decompress algrithms
Development Platform:
Visual C++
- //-----------------------------------------------------------------------------
- //
- // ImageLib Sources
- // Copyright (C) 2000-2002 by Denton Woods
- // Last modified: 05/25/2002 <--Y2K Compliant! =]
- //
- // Filename: src-IL/include/sgi.h
- //
- // Description: Reads from and writes to SGI graphics files.
- //
- //-----------------------------------------------------------------------------
- #ifndef SGI_H
- #define SGI_H
- #include "il_internal.h"
- typedef struct iSgiHeader
- {
- ILshort MagicNum; // IRIS image file magic number
- ILbyte Storage; // Storage format
- ILbyte Bpc; // Number of bytes per pixel channel
- ILushort Dim; // Number of dimensions
- // 1: single channel, 1 row with XSize pixels
- // 2: single channel, XSize*YSize pixels
- // 3: ZSize channels, XSize*YSize pixels
- ILushort XSize; // X size in pixels
- ILushort YSize; // Y size in pixels
- ILushort ZSize; // Number of channels
- ILint PixMin; // Minimum pixel value
- ILint PixMax; // Maximum pixel value
- ILint Dummy1; // Ignored
- ILbyte Name[80]; // Image name
- ILint ColMap; // Colormap ID
- ILbyte Dummy[404]; // Ignored
- } IL_PACKSTRUCT iSgiHeader;
- // Sgi format #define's
- #define SGI_VERBATIM 0
- #define SGI_RLE 1
- #define SGI_MAGICNUM 474
- // Sgi colormap types
- #define SGI_COLMAP_NORMAL 0
- #define SGI_COLMAP_DITHERED 1
- #define SGI_COLMAP_SCREEN 2
- #define SGI_COLMAP_COLMAP 3
- // Internal functions
- ILboolean iIsValidSgi(void);
- ILboolean iCheckSgi(iSgiHeader *Header);
- ILboolean iLoadSgiInternal(void);
- ILboolean iSaveSgiInternal(void);
- void iExpandScanLine(ILubyte *Dest, ILubyte *Src, ILuint Bpc);
- ILint iGetScanLine(ILubyte *ScanLine, iSgiHeader *Head, ILuint Length);
- ILint iGetScanLineFast(ILubyte *ScanLine, iSgiHeader *Head, ILuint Length, ILubyte*);
- void sgiSwitchData(ILubyte *Data, ILuint SizeOfData);
- ILboolean iNewSgi(iSgiHeader *Head);
- ILboolean iReadNonRleSgi(iSgiHeader *Head);
- ILboolean iReadRleSgi(iSgiHeader *Head);
- ILboolean iSaveRleSgi(ILubyte *Data, ILuint w, ILuint h, ILuint numChannels, ILuint bps);
- #endif//SGI_H