getGradientSamples(_:numSamples:depth:fromParameter:at:)
Gets the Gradient parameter settings.
Declaration
func getGradientSamples(_ samples: UnsafeMutableRawPointer, numSamples: Int, depth sampleDepth: FxDepth, fromParameter parameterID: UInt32, at time: CMTime) -> BoolParameters
- samples:
Pointer to a buffer of size (4 * numSamples * sampleDepth). It is populated with samples of RGBA values across the gradient. The number of samples is set by numSamples.
- numSamples:
Number of samples from the gradient. More samples provide a more accurate representation, but require more time.
- sampleDepth:
Number of bytes per channel (
kFxDepth_FLOAT32, for example). - parameterID:
Unique identifier for the parameter.
- time:
Specified time to get the values.
Return Value
Returns YES if the values are retrieved successfully; NO otherwise.
Discussion
Depending on the host application, the time value may be relative to the start of the timeline or to the start of the clip. See Understanding time in FxPlug.
See Also
Instance Methods
getBoolValue(_:fromParameter:at:)getCustomParameterValue(_:fromParameter:at:)getFloatValue(_:fromParameter:at:)getFontName(_:fromParameter:at:)getHistogramBlack(in:blackOut:whiteIn:whiteOut:gamma:forChannel:fromParameter:at:)getIntValue(_:fromParameter:at:)getParameterFlags(_:fromParameter:)getPathID(_:fromParameter:at:)getRedValue(_:greenValue:blueValue:alphaValue:fromParameter:at:)getRedValue(_:greenValue:blueValue:fromParameter:at:)getStringParameterValue(_:fromParameter:)getXValue(_:yValue:fromParameter:at:)