summaryrefslogtreecommitdiff
path: root/libs/gst/controller/gstinterpolationcontrolsource.h
diff options
context:
space:
mode:
authorStefan Sauer <ensonic@users.sf.net>2015-09-07 09:39:32 +0200
committerStefan Sauer <ensonic@users.sf.net>2015-09-27 12:46:01 +0200
commit56f12705cab3affa2fb03fad7e9eb9859f1b9137 (patch)
tree3015b82200cb04fbf59fa5d0eb36330309d16aad /libs/gst/controller/gstinterpolationcontrolsource.h
parent2fe3939ce7ea84c45dd922e7f1097dd07f11fc5d (diff)
interpolationcontrolsource: add cubic_mono interpolation
This new mode won't overshoot the min/max y values set by the control-points. Fixes #754678 API: GST_INTERPOLATION_MODE_CUBIC_MONO
Diffstat (limited to 'libs/gst/controller/gstinterpolationcontrolsource.h')
-rw-r--r--libs/gst/controller/gstinterpolationcontrolsource.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/libs/gst/controller/gstinterpolationcontrolsource.h b/libs/gst/controller/gstinterpolationcontrolsource.h
index f4b2fbff1..065c4be63 100644
--- a/libs/gst/controller/gstinterpolationcontrolsource.h
+++ b/libs/gst/controller/gstinterpolationcontrolsource.h
@@ -54,7 +54,10 @@ typedef struct _GstInterpolationControlSourcePrivate GstInterpolationControlSour
* GstInterpolationMode:
* @GST_INTERPOLATION_MODE_NONE: steps-like interpolation, default
* @GST_INTERPOLATION_MODE_LINEAR: linear interpolation
- * @GST_INTERPOLATION_MODE_CUBIC: cubic interpolation
+ * @GST_INTERPOLATION_MODE_CUBIC: cubic interpolation (natural), may overshoot
+ * the min or max values set by the control point, but is more 'curvy'
+ * @GST_INTERPOLATION_MODE_CUBIC_MONO: (Since 1.8) monotonic cubic interpolation, will not
+ * produce any values outside of the min-max range set by the control points
*
* The various interpolation modes available.
*/
@@ -62,7 +65,8 @@ typedef enum
{
GST_INTERPOLATION_MODE_NONE,
GST_INTERPOLATION_MODE_LINEAR,
- GST_INTERPOLATION_MODE_CUBIC
+ GST_INTERPOLATION_MODE_CUBIC,
+ GST_INTERPOLATION_MODE_CUBIC_MONO,
} GstInterpolationMode;
/**