make skcms_TransferFunction_invert public
and clean up skcms_OptimizeForSpeed
Change-Id: I72a18b5981e63b6b029608b9394ea501b4c58ca7
Reviewed-on: https://skia-review.googlesource.com/157523
Auto-Submit: Mike Klein <mtklein@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
diff --git a/skcms.h b/skcms.h
index 808ee29..b4c0f4c 100644
--- a/skcms.h
+++ b/skcms.h
@@ -43,6 +43,9 @@
float g, a,b,c,d,e,f;
} skcms_TransferFunction;
+SKCMS_API bool skcms_TransferFunction_invert(const skcms_TransferFunction*,
+ skcms_TransferFunction*);
+
// Unified representation of 'curv' or 'para' tag data, or a 1D table from 'mft1' or 'mft2'
typedef union skcms_Curve {
struct {
@@ -136,9 +139,6 @@
// will be used.
SKCMS_API bool skcms_Parse(const void*, size_t, skcms_ICCProfile*);
-// No-op, to be removed.
-static inline void skcms_OptimizeForSpeed(skcms_ICCProfile* p) { (void)p; }
-
SKCMS_API bool skcms_ApproximateCurve(const skcms_Curve* curve,
skcms_TransferFunction* approx,
float* max_error);
diff --git a/skcms_internal.h b/skcms_internal.h
index 3e2fc2b..384cad0 100644
--- a/skcms_internal.h
+++ b/skcms_internal.h
@@ -23,7 +23,6 @@
// ~~~~ skcms_TransferFunction ~~~~
float skcms_TransferFunction_eval (const skcms_TransferFunction*, float);
- bool skcms_TransferFunction_invert(const skcms_TransferFunction*, skcms_TransferFunction*);
// ~~~~ skcms_ICCProfile ~~~~
bool skcms_GetCHAD(const skcms_ICCProfile* profile, skcms_Matrix3x3* m);