aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/skcms/src/GaussNewton.c
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-05-16 16:03:08 +0000
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-05-16 17:18:52 +0000
commit6c78b2b7cd01525c43939dcee4e5e370a5b66ac2 (patch)
tree1e1e512a461aa5aa026f861382424733cb94022e /third_party/skcms/src/GaussNewton.c
parentd6b41a27678f0c153eff982be4f1120e6cb65692 (diff)
Roll skia/third_party/skcms e040063..a7e79c5 (2 commits)
https://skia.googlesource.com/skcms.git/+log/e040063..a7e79c5 2018-05-16 mtklein@chromium.org try yet again to fix gauss-newton stepping 2018-05-16 mtklein@chromium.org add clang.O0 build 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. CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel TBR=herb@google.com Change-Id: I63a0ed3f912f69b114e3100ea44311f478563d3a Reviewed-on: https://skia-review.googlesource.com/128475 Commit-Queue: skcms-skia-autoroll <skcms-skia-autoroll@skia-buildbots.google.com.iam.gserviceaccount.com> Reviewed-by: skcms-skia-autoroll <skcms-skia-autoroll@skia-buildbots.google.com.iam.gserviceaccount.com>
Diffstat (limited to 'third_party/skcms/src/GaussNewton.c')
-rw-r--r--third_party/skcms/src/GaussNewton.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/third_party/skcms/src/GaussNewton.c b/third_party/skcms/src/GaussNewton.c
index 7e9f774538..61aeddbcdb 100644
--- a/third_party/skcms/src/GaussNewton.c
+++ b/third_party/skcms/src/GaussNewton.c
@@ -16,7 +16,7 @@
bool skcms_gauss_newton_step(float (*rg)(float x, const void*, const float P[3], float dfdP[3]),
const void* ctx,
float P[3],
- float x0, float x1, int N) {
+ float x0, float dx, int N) {
// We'll sample x from the range [x0,x1] (both inclusive) N times with even spacing.
//
// We want to do P' = P + (Jf^T Jf)^-1 Jf^T r(P),
@@ -56,7 +56,6 @@ bool skcms_gauss_newton_step(float (*rg)(float x, const void*, const float P[3],
// 1,2) evaluate lhs and evaluate rhs
// We want to evaluate Jf only once, but both lhs and rhs involve Jf^T,
// so we'll have to update lhs and rhs at the same time.
- float dx = (x1-x0)/(N-1);
for (int i = 0; i < N; i++) {
float x = x0 + i*dx;