// Copyright 2016 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "qcms_test_util.h" #include <math.h> #include <stdlib.h> #define MAX_FLOAT_ERROR … // Store random pixel data in the source. void generate_source_uint8_t(unsigned char *src, const size_t length, const size_t pixel_size) { … } // Parametric Fn using floating point <from lcms/src/cmsgamma.c>: DefaultEvalParametricFn float evaluate_parametric_curve(int type, const float params[], float r) { … }