![]() |
libimgdoc2
|
For the blob which ends up in blob-storage, the enum "DataTypes" is determing the binary layout. There following types are defined:
DataType enumeration | type | description |
---|---|---|
ZERO=0 | special case: no blob | this data type is indicating: there is no blob, this tile is to be regarded as "all black" |
UNCOMPRESSED_BITMAP=1 | uncompressed 2D-bitmap | |
JPGXRCOMPRESSED_BITMAP=2 | JPG-XR-compressed 2D-bitmap | |
ZSTD0COMPRESSED_BITMAP | 2D-bitmap compressed with 'zstd0' method | (to be done) |
ZSTD1COMPRESSED_BITMAP | 2D-bitmap compressed with 'zstd1' method | (to be done) |
UNCOMPRESSED_BRICK=32 | uncompressed 3D-bitmap | (to be done) |
The bitmap is sufficiently described with the structure 'TileBlobInfo'. This information must be sufficient to reconstruct the bitmap from the blob.
An uncompressed bitmap is stored with the following conventions:
The blob contaings a valid Jpeg-XR aka HDP-file (ISO/IEC 29199-2). The blob is suitable for being decompressed using the Windows WIC-WmpImageCodec.
The binary layout of an uncompressed brick is as depicted here:
The first voxel is at the left-front-lower position, the next is then to the right of it. At the end of the line, the next voxel is then at the left side and adds one unit in y-direction. If the last line is reached, it starts again at the left-front-lower position and adds one unit in z-direction.