Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-s2tc: Commit

external/s2tc


Commit MetaInfo

Revisiona34937c445cf09ea702dbb91e39a6d885a5f1549 (tree)
Time2019-03-13 11:40:11
AuthorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

Remove unused functions

Change Summary

Incremental Difference

--- a/s2tc_algorithm.cpp
+++ b/s2tc_algorithm.cpp
@@ -51,18 +51,10 @@ namespace
5151 {
5252 signed char r, g, b;
5353 };
54- inline color_t make_color_t()
55- {
56- return (color_t) {0, 0, 0};
57- }
5854 inline color_t make_color_t(signed char r_, signed char g_, signed char b_)
5955 {
6056 return (color_t) {r_, g_, b_};
6157 }
62- inline color_t make_color_t(int i)
63- {
64- return (color_t) {(signed char)(i >> 3), (signed char)(i >> 2), (signed char)(i >> 3)};
65- }
6658 inline bool operator==(const color_t &a, const color_t &b)
6759 {
6860 return a.r == b.r && a.g == b.g && a.b == b.b;
@@ -487,27 +479,11 @@ namespace
487479 {
488480 return comp;
489481 }
490- template<> inline int refine_component_encode<color_dist_srgb>(int comp)
491- {
492- return comp * comp;
493- }
494- template<> inline int refine_component_encode<color_dist_srgb_mixed>(int comp)
495- {
496- return comp * comp;
497- }
498482
499483 template<ColorDistFunc ColorDist> inline int refine_component_decode(int comp)
500484 {
501485 return comp;
502486 }
503- template<> inline int refine_component_decode<color_dist_srgb>(int comp)
504- {
505- return sqrtf(comp) + 0.5f;
506- }
507- template<> inline int refine_component_decode<color_dist_srgb_mixed>(int comp)
508- {
509- return sqrtf(comp) + 0.5f;
510- }
511487
512488 template <class T, class Big, int scale_l>
513489 struct s2tc_evaluate_colors_result_t;
Show on old repository browser