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

◆ CT_ERROR

#define CT_ERROR   100

◆ CT_SET_ERROR

#define CT_SET_ERROR   200

◆ CT_SUCCESS

#define CT_SUCCESS   0

◆ CT_WARNING

#define CT_WARNING   104

◆ CUBIC_SPLINE

#define CUBIC_SPLINE   0

◆ MAX_ANCHORS

#define MAX_ANCHORS   20

◆ MAX_RESOLUTION

#define MAX_RESOLUTION   65536

◆ MONOTONE_HERMITE

#define MONOTONE_HERMITE   2

Function Documentation

◆ CurveDataSample()

◆ interpolate_set()

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

References spline_set, and type.

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 
)

References spline_val, and type.

Referenced by CurveDataSample(), and dt_draw_curve_calc_value().