Offers capabilities to encode and decode DDS format. More...
Static Public Member Functions | |
static nkMemory::Buffer | encode (const ImageView &image) |
static bool | canDecode (nkMemory::BufferView< unsigned char > data) |
static Image | decode (nkMemory::BufferView< unsigned char > data, const AlignmentDescriptor &alignmentDescriptor=AlignmentDescriptor()) |
Offers capabilities to encode and decode DDS format.
|
static |
Encodes an image into a binary buffer fitting the DDS format.
image | The image to encode. |
|
static |
Checks whether a binary buffer can be decoded by this encoder. This checks the file header for the magic bytes.
data | The binary data which need to be checked. |
|
static |
Decodes a binary buffer into its image representation.
Currently supported features are :
However, some functionalities are still being worked on :
data | The binary buffer to decode. |
alignmentDescriptor | If decoded image's data needs to fit some alignment requirements, they can be specified through this parameter. |