<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "VideoToolbox",
  "identifier" : "/documentation/VideoToolbox/VTRAWProcessingSessionSetProcessingParameters",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Video Toolbox"
    ],
    "preciseIdentifier" : "c:@F@VTRAWProcessingSessionSetProcessingParameters"
  },
  "title" : "VTRAWProcessingSessionSetProcessingParameters"
}
-->

# VTRAWProcessingSessionSetProcessingParameters

Sets a collection of RAW Processing parameters.

```
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`](/documentation/VideoToolbox/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`](/documentation/VideoToolbox/kVTRAWProcessingParameter_Key) values that were returned in [`VTRAWProcessingSessionCopyProcessingParameters`](/documentation/VideoToolbox/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`](/documentation/VideoToolbox/VTRAWProcessingSessionProcessFrame) is called after [`VTRAWProcessingSessionSetProcessingParameters`](/documentation/VideoToolbox/VTRAWProcessingSessionSetProcessingParameters) returns.

If any parameters specified are not in the array reported by [`VTRAWProcessingSessionCopyProcessingParameters`](/documentation/VideoToolbox/VTRAWProcessingSessionCopyProcessingParameters), or are the wrong type or out of range,
[`kVTParameterErr`](/documentation/VideoToolbox/kVTParameterErr) will be returned.  Valid key-value pairs in the dictionary will still be applied.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)