BLFormatInfo Struct Reference [¶]
Provides a detailed information about a pixel format. Use bl_format_info array to get an information of Blend2D native pixel formats.
Provides a detailed information about a pixel format. Use bl_format_info array to get an information of Blend2D native pixel formats.
Query Blend2D format
and copy it to this format info, see BLFormat.
Copies data from bl_format_info() to this BLFormatInfo struct and returns BL_SUCCESS if the format
was valid, otherwise the BLFormatInfo is reset and BL_ERROR_INVALID_VALUE is returned.
The BL_FORMAT_NONE is considered invalid format, thus if it's passed to query()
the return value would be BL_ERROR_INVALID_VALUE.
Sanitize this BLFormatInfo.
Sanitizer verifies whether the format is valid and updates the format information about flags to values that Blend2D expects. For example format flags are properly examined and simplified if possible, byte-swap is implicitly performed for formats where a single component matches one byte, etc...