diff options
author | scuri <scuri> | 2008-10-17 06:10:15 +0000 |
---|---|---|
committer | scuri <scuri> | 2008-10-17 06:10:15 +0000 |
commit | 5a422aba704c375a307a902bafe658342e209906 (patch) | |
tree | 5005011e086bb863d8fb587ad3319bbec59b2447 /include/im_format_raw.h |
First commit - moving from LuaForge to SourceForge
Diffstat (limited to 'include/im_format_raw.h')
-rw-r--r-- | include/im_format_raw.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/include/im_format_raw.h b/include/im_format_raw.h new file mode 100644 index 0000000..8027f82 --- /dev/null +++ b/include/im_format_raw.h @@ -0,0 +1,64 @@ +/** \file + * \brief Initialize the RAW Format Driver + * Header for internal use only. + * + * See Copyright Notice in im_lib.h + */ + +#ifndef __IM_FORMAT_RAW_H +#define __IM_FORMAT_RAW_H + +#if defined(__cplusplus) +extern "C" { +#endif + +/** \defgroup raw RAW - RAW File + * + * \par + * The file must be open/created with the functions \ref imFileOpenRaw and \ref imFileNewRaw. + * + * \section Description + * + * \par + * Internal Implementation. + * \par + * Supports RAW binary images. You must know image parameters a priori. \n + * You must set the IM_INT attributes "Width", "Height", "ColorMode", "DataType" before the imFileReadImageInfo/imFileWriteImageInfo functions. + * \par + * The data must be in binary form, but can start in an arbitrary offset from the begining of the file, use attribute "StartOffset". + * The default is at 0 offset. + * \par + * Integer sign and double precision can be converted using attribute "SwitchType". \n + * The conversions will be BYTE<->CHAR, USHORT<->SHORT, INT<->UINT, FLOAT<->DOUBLE. + * \par + * Byte Order can be Little Endian (Intel=1) or Big Endian (Motorola=0), use the attribute "ByteOrder", the default is the current CPU. + * \par + * The lines can be aligned to a BYTE (1), WORD (2) or DWORD (4) boundaries, ue attribute "Padding" with the respective value. + * \par + * See \ref im_raw.h + * + * \section Features + * +\verbatim + Data Types: <all> + Color Spaces: all, except MAP. + Compressions: + NONE - no compression + Can have more than one image, depends on "StartOffset" attribute. + Can have an alpha channel. + Components can be packed or not. + Lines arranged from top down to bottom or bottom up to top. + + Attributes: + Width, Height, ColorMode, DataType IM_INT (1) + StartOffset, SwitchType, ByteOrder, Padding IM_INT (1) +\endverbatim + * \ingroup format */ +imFormat* imFormatInitRAW(void); + + +#if defined(__cplusplus) +} +#endif + +#endif |