Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
curve_tools.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  CurveAnchorPoint
 
struct  CurveData
 
struct  CurveSample
 

Macros

#define CUBIC_SPLINE   0
 
#define CATMULL_ROM   1
 
#define MONOTONE_HERMITE   2
 
#define MAX_RESOLUTION   65536
 
#define MAX_ANCHORS   20
 
#define CT_SUCCESS   0
 
#define CT_ERROR   100
 
#define CT_WARNING   104
 
#define CT_SET_ERROR   200
 

Functions

int CurveDataSample (CurveData *curve, CurveSample *sample)
 
float * interpolate_set (int n, float x[], float y[], unsigned int type)
 
float interpolate_val (int n, float x[], float xval, float y[], float tangents[], unsigned int type)
 

Macro Definition Documentation

◆ CATMULL_ROM

#define CATMULL_ROM   1

Definition at line 34 of file curve_tools.h.

◆ CT_ERROR

#define CT_ERROR   100

Definition at line 43 of file curve_tools.h.

◆ CT_SET_ERROR

#define CT_SET_ERROR   200

Definition at line 45 of file curve_tools.h.

◆ CT_SUCCESS

#define CT_SUCCESS   0

Definition at line 42 of file curve_tools.h.

◆ CT_WARNING

#define CT_WARNING   104

Definition at line 44 of file curve_tools.h.

◆ CUBIC_SPLINE

#define CUBIC_SPLINE   0

Definition at line 33 of file curve_tools.h.

◆ MAX_ANCHORS

#define MAX_ANCHORS   20

Definition at line 39 of file curve_tools.h.

◆ MAX_RESOLUTION

#define MAX_RESOLUTION   65536

Definition at line 38 of file curve_tools.h.

◆ MONOTONE_HERMITE

#define MONOTONE_HERMITE   2

Definition at line 35 of file curve_tools.h.

Function Documentation

◆ CurveDataSample()

◆ interpolate_set()

float * interpolate_set ( int  n,
float  x[],
float  y[],
unsigned int  type 
)

Definition at line 514 of file curve_tools.c.

References n, spline_set, type, and x.

Referenced by CurveDataSample(), and dt_draw_curve_calc_value().

◆ interpolate_val()

float interpolate_val ( int  n,
float  x[],
float  xval,
float  y[],
float  tangents[],
unsigned int  type 
)

Definition at line 519 of file curve_tools.c.

References n, spline_val, type, and x.

Referenced by CurveDataSample(), and dt_draw_curve_calc_value().