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;
113 flagByte =
static_cast<MLuint8>(flagByte | (isPartialPage ? 1u : 0u));
119 return (flagByte & 1) ? true :
false;
154 void *newTableData=
nullptr,
193 MLint pageDataStartPosInFile,
194 MLint pageDataEndPosInFile,
232 MLint numWholePageIds);
255 MLint _numAllocatedTableEntries;
258 MLint _numImagePageIds;
261 MLint _sizeOfOneVoxel;
267 MLint _idxTabEntrySize;
MLint32 MLDataType
MLDataType.
MLint32 MLErrorCode
Type of an ML Error code.
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
After _internalData, the voxel value of the page is stored.
MLuint8 checkSumHigh
Highest 8 bit of 24 bit checksum of the page data. May be 0 for some file that does not store checksu...
MLint64 endFilePos
Position of the last data byte of the page in the file or -1 if the page is not stored and has only o...
MLuint8 flagByte
Flag byte containing status information about the stored page.
MLint64 startFilePos
Position of the first data byte of the page in the file or -1 if the page is not stored.
MLuint8 checkSumMed
Middle 8 bit of 24 bit checksum of the page data. May be 0 for some file that does not store checksum...
bool getPartialFlag() const
Returns true if page is stored only partially; otherwise, it returns false.
void setFlagByte(MLuint8 newVal)
Sets flag byte to the passed value.
MLuint8 isCompressed
1 if the page is compressed with the compression scheme define in the tag ML_COMPRESSION,...
void setCheckSum(MLuint32 sum)
Returns the checksum stored in checkSumLow, checkSumMed, and checkSumHigh.
MLuint8 checkSumLow
Lowest 8 bit of 24 bit checksum of the page data. May be 0 for some file that does not store checksum...
void setPartialFlag(bool isPartialPage)
Sets partial flag for a page, i.e., the page data is stored only as a fragment.