aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/skcms/skcms.h
diff options
context:
space:
mode:
authorGravatar skcms-skia-autoroll@skia-buildbots.google.com.iam.gserviceaccount.com <skcms-skia-autoroll@skia-buildbots.google.com.iam.gserviceaccount.com>2018-04-24 15:20:32 +0000
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-04-24 15:43:06 +0000
commiteb43fdaaf82213cc321da7929c3188c790b37c52 (patch)
treecfff0081772c8b005fa07145df9d390bc2756761 /third_party/skcms/skcms.h
parent738a25645d090df803651321ed7bc7a3c0f6e595 (diff)
Roll skia/third_party/skcms 5cbdc0a..011b614 (1 commits)
https://skia.googlesource.com/skcms.git/+log/5cbdc0a..011b614 2018-04-24 mtklein@chromium.org gut TF13 The AutoRoll server is located here: https://skcms-skia-roll.skia.org Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/master/autoroll/README.md If the roll is causing failures, please contact the current sheriff, who should be CC'd on the roll, and stop the roller if necessary. TBR=stani@google.com Change-Id: I87e281fc5ac75f11acdcf7d4621d6635836b7a67 Reviewed-on: https://skia-review.googlesource.com/123393 Reviewed-by: skcms-skia-autoroll <skcms-skia-autoroll@skia-buildbots.google.com.iam.gserviceaccount.com> Commit-Queue: skcms-skia-autoroll <skcms-skia-autoroll@skia-buildbots.google.com.iam.gserviceaccount.com>
Diffstat (limited to 'third_party/skcms/skcms.h')
-rw-r--r--third_party/skcms/skcms.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/third_party/skcms/skcms.h b/third_party/skcms/skcms.h
index 9c25b1d538..54c9e8ebae 100644
--- a/third_party/skcms/skcms.h
+++ b/third_party/skcms/skcms.h
@@ -73,12 +73,6 @@ typedef struct skcms_A2B {
skcms_Curve output_curves[3];
} skcms_A2B;
-// A specialized approximation for transfer functions with gamma between 1 and 3.
-// f(x) = sign(x) * (A|x|^3 + B|x|^2 + (1-A-B)|x|)
-typedef struct skcms_TF13 {
- float A,B;
-} skcms_TF13;
-
typedef struct skcms_ICCProfile {
const uint8_t* buffer;
@@ -103,10 +97,6 @@ typedef struct skcms_ICCProfile {
// and has_A2B to true.
bool has_A2B;
skcms_A2B A2B;
-
- // If has_trc, we may be able to approximate the curves more efficiently.
- bool has_tf13[3];
- skcms_TF13 tf13[3];
} skcms_ICCProfile;
// The sRGB color profile is so commonly used that we offer a canonical skcms_ICCProfile for it.
@@ -131,8 +121,6 @@ void skcms_OptimizeForSpeed(skcms_ICCProfile*);
bool skcms_ApproximateCurve(const skcms_Curve* curve, skcms_TransferFunction* approx,
float* max_error);
-bool skcms_ApproximateCurve13(const skcms_Curve* curve, skcms_TF13* approx, float* max_error);
-
// What is the best single transfer function to use for the given profile? Note that there is
// no real upper bound on the error of this transfer function.
skcms_TransferFunction skcms_BestSingleCurve(const skcms_ICCProfile*);