API Documentation
Static Public Member Functions | List of all members
nkGraphics::CompositeEncoder Class Referencefinal

Allows to work with all formats supported, automatically. More...

Static Public Member Functions

static bool canDecode (const nkMemory::BufferView<> &sources)
 
static DecodedData decode (const nkMemory::BufferView<> &sources, const CompositeDecodeOptions &options=CompositeDecodeOptions())
 

Detailed Description

Allows to work with all formats supported, automatically.

Member Function Documentation

◆ canDecode()

static bool nkGraphics::CompositeEncoder::canDecode ( const nkMemory::BufferView<> &  sources)
static

Checks whether data can be decoded or not. This will go through all available canDecode methods to know if one of the available encoders can work with the data given.

Parameters
sourcesData to check.
Returns
Whether the data can be decoded by one of the available encoders (true) or not (false).

◆ decode()

static DecodedData nkGraphics::CompositeEncoder::decode ( const nkMemory::BufferView<> &  sources,
const CompositeDecodeOptions options = CompositeDecodeOptions() 
)
static

Decodes provided data. This will request all available encoders until it can find one that can decode the data.

Parameters
sourcesData to decode.
optionsThe decoding options to drive how data should be decoded.
Returns
Decoded data.

The documentation for this class was generated from the following file: