VTRAWProcessingSessionSetProcessingParameters
Sets a collection of RAW Processing parameters.
Declaration
extern OSStatus VTRAWProcessingSessionSetProcessingParameters(VTRAWProcessingSessionRef session, CFDictionaryRef processingParameters);Parameters
- session:
The RAW processing session.
- processingParameters:
A dictionary of keys and values setting parameters reported by Vtrawprocessingsessioncopyprocessingparameters.
Return Value
An error if any of the provided parameters are invalid, disabled, or outside of the declared valid range. None of the provided parameters will be set on the processor if an error is returned.
Discussion
This call sets a collection of RAW Processing parameters on the RAW Processor. These are set as a dictionary where the keys match kVTRAWProcessingParameter_Key values that were returned in VTRAWProcessingSessionCopyProcessingParameters and where values conform to the type and range defined in the kVTRAWProcessingParameter dictionary for each parameter.
Not all parameters from the array need to be set at any given time. Changing the parameters doesn’t change processing on frames already submitted for processing, it will only impact frames where VTRAWProcessingSessionProcessFrame is called after VTRAWProcessingSessionSetProcessingParameters returns.
If any parameters specified are not in the array reported by VTRAWProcessingSessionCopyProcessingParameters, or are the wrong type or out of range, kVTParameterErr will be returned. Valid key-value pairs in the dictionary will still be applied.