![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
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) |
#define CATMULL_ROM 1 |
#define CT_ERROR 100 |
#define CT_SET_ERROR 200 |
#define CT_SUCCESS 0 |
#define CT_WARNING 104 |
#define CUBIC_SPLINE 0 |
#define MAX_ANCHORS 20 |
#define MAX_RESOLUTION 65536 |
#define MONOTONE_HERMITE 2 |
int CurveDataSample | ( | CurveData * | curve, |
CurveSample * | sample | ||
) |
References CT_ERROR, CT_SUCCESS, interpolate_set(), interpolate_val(), CurveData::m_anchors, CurveData::m_max_x, CurveData::m_max_y, CurveData::m_min_x, CurveData::m_min_y, CurveData::m_numAnchors, CurveSample::m_outputRes, CurveSample::m_Samples, CurveSample::m_samplingRes, CurveData::m_spline_type, CurveAnchorPoint::x, and CurveAnchorPoint::y.
Referenced by dt_draw_curve_calc_values(), get_error(), and main().
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().
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().