MCPcopy Create free account
hub / github.com/ARM-software/astc-encoder / encoding_choice_errors

Class encoding_choice_errors

Source/astcenc_internal.h:922–941  ·  view source on GitHub ↗

* @brief Utility storing estimated errors from choosing particular endpoint encodings. */

Source from the content-addressed store, hash-verified

920 * @brief Utility storing estimated errors from choosing particular endpoint encodings.
921 */
922struct encoding_choice_errors
923{
924 /** @brief Error of using LDR RGB-scale instead of complete endpoints. */
925 float rgb_scale_error;
926
927 /** @brief Error of using HDR RGB-scale instead of complete endpoints. */
928 float rgb_luma_error;
929
930 /** @brief Error of using luminance instead of RGB. */
931 float luminance_error;
932
933 /** @brief Error of discarding alpha and using a constant 1.0 alpha. */
934 float alpha_drop_error;
935
936 /** @brief Can we use delta offset encoding? */
937 bool can_offset_encode;
938
939 /** @brief Can we use blue contraction encoding? */
940 bool can_blue_contract;
941};
942
943/**
944 * @brief Preallocated working buffers, allocated per thread during context creation.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected