13#ifndef ML_IMAGE_FORMAT_IDX_TABLE_H
14#define ML_IMAGE_FORMAT_IDX_TABLE_H
29 class MLImageFormatTagList;
32 class MLImageFormatInfos;
33 class MLImageFormatAbstractFileHandle;
91 return ((
static_cast<MLuint32>(checkSumLow ) ) |
92 (
static_cast<MLuint32>(checkSumMed ) << 8 ) |
93 (
static_cast<MLuint32>(checkSumHigh) << 16));
99 checkSumLow = (sum ) & 0xff;
100 checkSumMed = (sum >> 8) & 0xff;
101 checkSumHigh = (sum >> 16) & 0xff;
119 return (flagByte & 1) ?
true :
false;
255 MLint _numAllocatedTableEntries;
258 MLint _numImagePageIds;
261 MLint _sizeOfOneVoxel;
267 MLint _idxTabEntrySize;
MLint32 MLDataType
MLDataType.
MLint32 MLErrorCode
Type of an ML Error code.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
MLuint64 MLuint
An unsigned ML integer type with at least 64 bits used for index calculations on very large images ev...
unsigned char MLTypeData
This is the pointer type used to point to the data of MLType data instances.
INT64 MLint64
Include 64 bit integer support for Windows or Unix.
MLint64 MLint
A signed ML integer type with at least 64 bits used for index calculations on very large images even ...
MLuint32 getCheckSum() const
added explicitly. Thus it is not part of this struct.
MLuint8 checkSumHigh
Highest 8 bit of 24 bit checksum of page data. May be 0 for some file which do not store check sums.
MLint64 endFilePos
Position of last data byte of page in file or -1 if page is not stored and has only one value.
MLuint8 flagByte
Flag byte containing status information about the stored page.
MLint64 startFilePos
Position of first data byte of page in file or -1 if page is not stored.
MLuint8 checkSumMed
Middle 8 bit of 24 bit checksum of page data. May be 0 for some file which do not store check sums.
bool getPartialFlag() const
Returns true if page is stored only partially, otherwise false.
void setFlagByte(MLuint8 newVal)
Set flag byte to the passed value.
MLuint8 isCompressed
1 if page is compressed with compression scheme define in tag ML_COMPRESSION, 0 otherwise.
void setCheckSum(MLuint32 sum)
Returns the checkSum stored in checkSumLow, checkSumMed, and checkSumHigh.
MLuint8 checkSumLow
Lowest 8 bit of 24 bit checksum of page data. May be 0 for some file which do not store check sums.
void setPartialFlag(bool isPartialPage)
Set partial flag for a page, i.e. the page data is stored only as a fragment.