<!--
{
  "availability" : [
    "DriverKit: 27.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "VideoDriverKit",
  "identifier" : "/documentation/VideoDriverKit/IOUserVideoStream/SetAvailableStreamFormats",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "VideoDriverKit"
    ],
    "preciseIdentifier" : "c:@S@IOUserVideoStream@F@SetAvailableStreamFormats#*1$@N@VideoDriverKit@S@IOUserVideoStreamBasicDescription#i#"
  },
  "title" : "SetAvailableStreamFormats"
}
-->

# SetAvailableStreamFormats

Sets the available descriptions for the stream.

```
kern_return_t SetAvailableStreamFormats(const IOUserVideoStreamBasicDescription *in_formats, uint32_t in_num_formats);
```

## Parameters

`in_formats`

Pointer to a buffer of descriptions, with a size corresponding to `in_num_formats`.

`in_num_formats`

The number of formats in the `in_formats` buffer.

## Discussion

Changing the available formats will send a notification to the host to update the object state if successful.
The object’s work queue synchronizes access to the stream formats.

---

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)