---
title: GetAvailableStreamFormats
framework: VideoDriverKit
role: symbol
role_heading: Instance Method
platforms: [driverkit 27.0+]
path: videodriverkit/iouservideostream/getavailablestreamformats
---

# GetAvailableStreamFormats

Gets the available basic descriptions for the stream.

## Declaration

```occ
size_t GetAvailableStreamFormats(IOUserVideoStreamBasicDescription *out_formats, size_t in_num_formats);
```

## Parameters

- `out_formats`: Pointer to a buffer of format objects.
- `in_num_formats`: The number of formats in out_formats buffer.

## Return Value

Return Value The number of formats were set in the out_formats buffer.

## Discussion

Discussion The object’s work queue synchronizes access to the value.

## See Also

### Working with stream formats

- [SetCurrentStreamFormat](videodriverkit/iouservideostream/setcurrentstreamformat.md)
- [GetCurrentStreamFormat](videodriverkit/iouservideostream/getcurrentstreamformat.md)
- [SetAvailableStreamFormats](videodriverkit/iouservideostream/setavailablestreamformats.md)
- [GetNumberAvailableStreamFormats](videodriverkit/iouservideostream/getnumberavailablestreamformats.md)
- [IOUserVideoStreamBasicDescription](videodriverkit/videodriverkit/iouservideostreambasicdescription.md)
- [GetStreamDirection](videodriverkit/iouservideostream/getstreamdirection.md)
- [IOUserVideoStreamDirection](videodriverkit/videodriverkit/iouservideostreamdirection.md)
- [SetStreamIsActive](videodriverkit/iouservideostream/setstreamisactive.md)
- [GetStreamIsActive](videodriverkit/iouservideostream/getstreamisactive.md)
