Function CE::Assets::Images::decode(std::span<const unsigned char>)
Defined in File decoded-image.h
Function Documentation
-
Decoded CE::Assets::Images::decode(std::span<const unsigned char> bytes)
Declaration:
[[nodiscard]]Decode an encoded image held in memory into the same RGBA8 representation.
- Parameters:
bytes – Encoded file bytes borrowed only through the call; this is not raw pixel data.
- Returns:
Independent owned pixels; no graphics context or provider is used. Empty, oversized or undecodable input rejects the operation; allocation failures propagate.