2014-11-04 17:49:29 +00:00
|
|
|
|
|
|
|
namespace nv {
|
|
|
|
|
|
|
|
class Color32;
|
|
|
|
struct ColorBlock;
|
|
|
|
struct BlockDXT1;
|
|
|
|
class Vector3;
|
2015-03-24 19:14:49 +00:00
|
|
|
class Vector4;
|
2014-11-04 17:49:29 +00:00
|
|
|
|
|
|
|
// All these functions return MSE.
|
|
|
|
|
|
|
|
float compress_dxt1_single_color_optimal(Color32 c, BlockDXT1 * output);
|
|
|
|
float compress_dxt1_single_color_optimal(const Vector3 & color, BlockDXT1 * output);
|
|
|
|
|
2014-12-02 05:43:13 +00:00
|
|
|
float compress_dxt1_single_color(const Vector3 * colors, const float * weights, int count, const Vector3 & color_weights, BlockDXT1 * output);
|
2015-03-24 19:14:49 +00:00
|
|
|
float compress_dxt1_least_squares_fit(const Vector4 input_colors[16], const Vector3 * colors, const float * weights, int count, const Vector3 & color_weights, BlockDXT1 * output);
|
|
|
|
float compress_dxt1_bounding_box_exhaustive(const Vector4 input_colors[16], const Vector3 * colors, const float * weights, int count, const Vector3 & color_weights, bool three_color_mode, int search_limit, BlockDXT1 * output);
|
|
|
|
void compress_dxt1_cluster_fit(const Vector4 input_colors[16], const Vector3 * colors, const float * weights, int count, const Vector3 & color_weights, bool three_color_mode, BlockDXT1 * output);
|
2014-11-04 17:49:29 +00:00
|
|
|
|
|
|
|
|
2015-03-24 19:14:49 +00:00
|
|
|
float compress_dxt1(const Vector4 input_colors[16], const float input_weights[16], const Vector3 & color_weights, bool three_color_mode, BlockDXT1 * output);
|
2014-11-04 17:49:29 +00:00
|
|
|
|
2014-12-02 20:23:21 +00:00
|
|
|
}
|