CS::Graphics::UncompressedDXTDataLayout Struct Reference
Description on how pixel data before compression resp. More...
#include <igraphic/dxtcompress.h>
Public Member Functions | |
| void | Fix (size_t uncompressedSize) |
| Set members with value 0 to default values based on the given size of the uncompressed data type. | |
Public Attributes | |
| size_t | blocksPerRow |
| Number of blocks per row. | |
| size_t | bytesToNextBlock |
| Distance (in bytes) to the next block of pixels, from the beginning of the last block. | |
| size_t | bytesToNextPixel |
| Distance (in bytes) to the next pixel in a row. | |
| size_t | bytesToNextRow |
| Distance (in bytes) to the next row of pixels, from the beginning of the last row. | |
Detailed Description
Description on how pixel data before compression resp.
after decompression is arranged in blocks. DXT (and related) compression methods work on 4x4 blocks. This structure contains the necessary information to locate the individual pixels in a block as well as the next block to work on.
Definition at line 45 of file dxtcompress.h.
Member Function Documentation
| void CS::Graphics::UncompressedDXTDataLayout::Fix | ( | size_t | uncompressedSize | ) | [inline] |
Set members with value 0 to default values based on the given size of the uncompressed data type.
Definition at line 80 of file dxtcompress.h.
Member Data Documentation
Number of blocks per row.
After that number of blocks was decompressed the output pointer is advanced to the next row of destination blocks, which is computed from the start of the last row of destination blocks plus four times bytesToNextRow.
Definition at line 71 of file dxtcompress.h.
Distance (in bytes) to the next block of pixels, from the beginning of the last block.
If 0, the effective block distance is 4 times the effective pixel distance.
Definition at line 64 of file dxtcompress.h.
Distance (in bytes) to the next pixel in a row.
If 0, the effective pixel distance is the size of the uncompressed input/output data type (which depends on the context).
Definition at line 52 of file dxtcompress.h.
Distance (in bytes) to the next row of pixels, from the beginning of the last row.
If 0, the effective row distance is 4 times the effective pixel distance.
Definition at line 58 of file dxtcompress.h.
The documentation for this struct was generated from the following file:
- igraphic/dxtcompress.h
Generated for Crystal Space 2.1 by doxygen 1.6.1
