* @brief Utility storing estimated errors from choosing particular endpoint encodings. */
| 920 | * @brief Utility storing estimated errors from choosing particular endpoint encodings. |
| 921 | */ |
| 922 | struct 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. |
nothing calls this directly
no outgoing calls
no test coverage detected