<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MediaAccessibility",
  "identifier" : "/documentation/MediaAccessibility/MAFlashingLightsProcessor/processSurface(_:outSurface:timestamp:options:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Media Accessibility",
      "MediaAccessibility"
    ],
    "preciseIdentifier" : "s:So25MAFlashingLightsProcessorC18MediaAccessibilityE14processSurface_03outG09timestamp7optionsAbCE6ResultVSo12IOSurfaceRefa_AKzSdSDySo0abC9OptionKeyaypGSgtF"
  },
  "title" : "processSurface(_:outSurface:timestamp:options:)"
}
-->

# processSurface(_:outSurface:timestamp:options:)

Processes a surface by analyzing pixels for sequences of flashing lights and mitigates them by dimming the content.

```
func processSurface(_ inSurface: IOSurfaceRef, outSurface: inout IOSurfaceRef, timestamp: CFAbsoluteTime, options: [MAFlashingLightsProcessor.OptionKey : Any]? = nil) -> MAFlashingLightsProcessor.Result
```

## Parameters

`inSurface`

The input <doc://com.apple.documentation/documentation/IOSurface/IOSurfaceRef> to process for flashing lights.

`outSurface`

The output <doc://com.apple.documentation/documentation/IOSurface/IOSurfaceRef> for storing the mitigated video frame. This is the surface to display to the user.

`timestamp`

The time when your app displays the video frame to the user. The flashing lights processor uses the timestamp to determine the video’s real-time frame rate for the detection algorithm.

`options`

An options dictionary for additional parameters.

## Return Value

An [`MAFlashingLightsProcessor.Result`](/documentation/MediaAccessibility/MAFlashingLightsProcessor/Result) object that indicates whether the processor successfully processed the input surface, the intensity of flashing lights in the input surface, and the amount of mitigation in the output surface.

---

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)