basis_universal

Module encoding

Source
Expand description

Support for compressing raw image data to basis-universal form

Structs§

Compressor
Used to encode raw image data to basis-universal form
CompressorImageRef
A reference to an image being stored by CompressorParams. Generally used to insert the source data that is to be encoded by a Compressor.
CompressorParams
Parameters that are used to configure a Compressor

Enums§

ColorSpace
The color space the image to be compressed is encoded in. Using the correct color space will
CompressorErrorCode
Error codes that can be returned when encoding basis-universal data with a Compressor

Functions§

encoder_init
The underlying C++ library requires that encoder_init() has been called before a .basis file can be encoded. This function allows a user to do this early in the application explicitly. It is protected by a lock and AtomicBool flag so it is safe and cheap to call multiple times, and correctly handles multiple threads trying to initialize at the same time.

Unions§

ColorU8