Skip to content

Commit 81d1d64

Browse files
authored
Merge branch 'main' into fix-cxxstd-208
2 parents bb0f7de + 2064a0e commit 81d1d64

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

include/ofxParam.h

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,29 @@ If set to 1, then a plugin is flaging to the host that the host should use a nat
532532
*/
533533
#define kOfxParamPropUseHostOverlayHandle "kOfxParamPropUseHostOverlayHandle"
534534

535+
/** @brief value for the ::kOfxParamInterpType property, indicating a constant/hold/step interpolation type. See \ref ::kOfxParamInterpType. */
536+
#define kOfxParamInterpTypeConstantStep "OfxParamInterpTypeConstantStep"
537+
538+
/** @brief value for the ::kOfxParamInterpType property, indicating a linear interpolation type. See \ref ::kOfxParamInterpType. */
539+
#define kOfxParamInterpTypeLinear "OfxParamInterpTypeLinear"
540+
541+
/** @brief value for the ::kOfxParamInterpType property, indicating some kind of smooth interpolation type. See \ref ::kOfxParamInterpType. */
542+
#define kOfxParamInterpTypeSmooth "OfxParamInterpTypeSmooth"
543+
544+
/** @brief Sets the default interpolation type of a Integer or Double parameter.
545+
546+
- Type - C string X 1
547+
- Default - ::kOfxParamInterpTypeLinear
548+
- Property Set - 1D integer and double plugin parameter descriptor (read/write) and instance (read only)
549+
- Valid Values - This must be one of
550+
- ::kOfxParamInterpTypeConstantStep - constant/hold/step interpolation,
551+
- ::kOfxParamInterpTypeLinear - linear interpolation,
552+
- ::kOfxParamInterpTypeSmooth - some kind of smooth (bezier, hermite, cardinal, etc) interpolation
553+
554+
This allows a plugin to indicate how a number-type parameter should be interpolated by default. This is useful if a parameter
555+
is used to encode a keyed set of interesting frame numbers to be used as markers or retime points without the host animating them.
556+
*/
557+
#define kOfxParamInterpType "OfxParamInterpType"
535558

536559
/** @brief Enables the display of a time marker on the host's time line to indicate the value of the absolute time param.
537560

0 commit comments

Comments
 (0)