<!--
{
  "availability" : [
    "iOS: 6.0.0 -",
    "iPadOS: 6.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.8.0 -",
    "tvOS: 10.2.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "VideoToolbox",
  "identifier" : "/documentation/VideoToolbox/VTFrameProcessorError-swift.struct/Code",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Video Toolbox"
    ],
    "preciseIdentifier" : "c:@E@VTFrameProcessorError"
  },
  "title" : "VTFrameProcessorError.Code"
}
-->

# VTFrameProcessorError.Code

Error codes generated by a frame processor.

```
enum Code
```

## Topics

### Enumeration Cases

[`VTFrameProcessorFatalError`](/documentation/VideoToolbox/VTFrameProcessorError-swift.struct/Code/fatalError)

A fatal error occurred during processing.

[`VTFrameProcessorInitializationFailed`](/documentation/VideoToolbox/VTFrameProcessorError-swift.struct/Code/initializationFailed)

The session failed to initialize the processing pipeline.

[`VTFrameProcessorInvalidFrameTiming`](/documentation/VideoToolbox/VTFrameProcessorError-swift.struct/Code/invalidFrameTiming)

A provided frame object has a presentation time stamp which isn’t supported by the processor.

[`VTFrameProcessorInvalidParameterError`](/documentation/VideoToolbox/VTFrameProcessorError-swift.struct/Code/invalidParameterError)

A provided parameter isn’t valid.

[`VTFrameProcessorMemoryAllocationFailure`](/documentation/VideoToolbox/VTFrameProcessorError-swift.struct/Code/memoryAllocationFailure)

The session or processor is unable to allocate the required memory.

[`VTFrameProcessorProcessingError`](/documentation/VideoToolbox/VTFrameProcessorError-swift.struct/Code/processingError)

The processor encountered an issue that prevents it from processing the provided frame.

[`VTFrameProcessorRevisionNotSupported`](/documentation/VideoToolbox/VTFrameProcessorError-swift.struct/Code/revisionNotSupported)

The specified revision isn’t supported by the configured processor.

[`VTFrameProcessorSessionAlreadyActive`](/documentation/VideoToolbox/VTFrameProcessorError-swift.struct/Code/sessionAlreadyActive)

An attempt is made to start a session that is already started.

[`VTFrameProcessorSessionLevelError`](/documentation/VideoToolbox/VTFrameProcessorError-swift.struct/Code/sessionLevelError)

The processing failed and current session should be stopped.

[`VTFrameProcessorSessionNotStarted`](/documentation/VideoToolbox/VTFrameProcessorError-swift.struct/Code/sessionNotStarted)

The session is used to process frames without being started.

[`VTFrameProcessorUnknownError`](/documentation/VideoToolbox/VTFrameProcessorError-swift.struct/Code/unknownError)

The processor failed for an unknown reason.

[`VTFrameProcessorUnsupportedInput`](/documentation/VideoToolbox/VTFrameProcessorError-swift.struct/Code/unsupportedInput)

One or more frames is in a format which isn’t supported by the processor.

[`VTFrameProcessorUnsupportedResolution`](/documentation/VideoToolbox/VTFrameProcessorError-swift.struct/Code/unsupportedResolution)

The processor failed due to an unsupported resolution.

### Initializers

[`init(rawValue:)`](/documentation/VideoToolbox/VTFrameProcessorError-swift.struct/Code/init(rawValue:))

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Equatable`](/documentation/Swift/Equatable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

---

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)