IM: _imFile Struct Reference

IM - An Imaging Tool

_imFile Struct Reference
[File Format SDK]

Inherited by imFormat.


Detailed Description

Base container to hold format independent state variables.


Data Fields

int is_new
void * attrib_table
void * line_buffer
int line_buffer_size
int line_buffer_extra
int line_buffer_alloc
int counter
int convert_bpp
int switch_type
long palette [256]
int palette_count
int user_color_mode
int user_data_type
int file_color_mode
int file_data_type
char compression [10]
int image_count
int image_index
int width
int height

Field Documentation

void* _imFile::attrib_table
 

in fact is a imAttribTable, but we hide this here

void* _imFile::line_buffer
 

used for line convertion, contains all components if packed, or only one if not

int _imFile::line_buffer_extra
 

extra bytes to be allocated

int _imFile::line_buffer_alloc
 

total allocated so far

int _imFile::convert_bpp
 

number of bpp to unpack/pack to/from 1 byte. When reading converts n packed bits to 1 byte (unpack). If n>1 will also expand to 0-255. When writing converts 1 byte to 1 bit (pack). If negative will only expand to 0-255 (no unpack or pack).

int _imFile::switch_type
 

flag to switch the original data type: char-byte, short-ushort, uint-int, double-float


The documentation for this struct was generated from the following file: