<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/BNNSFilterParameters/init(options:threadCount:allocator:deallocator:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:So20BNNSFilterParametersa10AccelerateE7options11threadCount9allocator11deallocatorABSo9BNNSFlagsa_Sis5Int32VSpySvSgGSg_S2itXCSgyALXCSgtcfc"
  },
  "title" : "init(options:threadCount:allocator:deallocator:)"
}
-->

# init(options:threadCount:allocator:deallocator:)

Returns a new common filter parameters structure using the specified options.

```
init(options: BNNSFlags, threadCount: Int, allocator: BNNSAlloc?, deallocator: BNNSFree?)
```

## Parameters

`options`

The options that control the behavior of a filter parameter.

`threadCount`

The maximum number of threads that the filter executes. Set to `0` to specify that the filter automatically selects the number of threads. Set to `1` to specify that the filter operates on a single thread.

`allocator`

The function the filter calls to allocate memory.

`deallocator`

The function the filter calls to deallocate memory.

---

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)