Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
splines.h
Go to the documentation of this file.
1/*
2 This file is part of darktable,
3 Copyright (C) 2009-2011 johannes hanika.
4 Copyright (C) 2012 Richard Wonka.
5 Copyright (C) 2016 Roman Lebedev.
6 Copyright (C) 2016 Tobias Ellinghaus.
7 Copyright (C) 2017 Peter Budai.
8 Copyright (C) 2019 Heiko Bauke.
9 Copyright (C) 2020 Pascal Obry.
10 Copyright (C) 2022 Martin Baƙinka.
11
12 darktable is free software: you can redistribute it and/or modify
13 it under the terms of the GNU General Public License as published by
14 the Free Software Foundation, either version 3 of the License, or
15 (at your option) any later version.
16
17 darktable is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 GNU General Public License for more details.
21
22 You should have received a copy of the GNU General Public License
23 along with darktable. If not, see <http://www.gnu.org/licenses/>.
24*/
25
26#pragma once
27
28#if defined(__cplusplus)
29extern "C"
30{
31#endif
32
33#include "curve_tools.h"
34
35 float interpolate_val_V2(int n, CurveAnchorPoint Points[], float x, unsigned int type);
36 float interpolate_val_V2_periodic(int n, CurveAnchorPoint Points[], float x, unsigned int type, float period);
37
38 int CurveDataSampleV2(CurveData *curve, CurveSample *sample);
40
41#if defined(__cplusplus)
42}
43#endif
44// clang-format off
45// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
46// vim: shiftwidth=2 expandtab tabstop=2 cindent
47// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
48// clang-format on
49
const float n
Definition colorspaces_inline_conversions.h:929
int type
Definition common/metadata.c:62
static const float x
Definition iop_profile.h:239
float interpolate_val_V2_periodic(int n, CurveAnchorPoint Points[], float x, unsigned int type, float period)
Definition splines.cpp:729
int CurveDataSampleV2Periodic(CurveData *curve, CurveSample *sample)
Definition splines.cpp:847
int CurveDataSampleV2(CurveData *curve, CurveSample *sample)
Definition splines.cpp:751
float interpolate_val_V2(int n, CurveAnchorPoint Points[], float x, unsigned int type)
Definition splines.cpp:708
Definition curve_tools.h:58
Definition curve_tools.h:64
Definition curve_tools.h:84