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

# SetCurrentStreamFormat

Sets the current stream format.

## Declaration

```occ
kern_return_t SetCurrentStreamFormat(const IOUserVideoStreamBasicDescription *in_format);
```

## Parameters

- `in_format`: Pointer to a description.

## Discussion

Discussion Changing the format send sa notification to the host to update the object state if successful. The object’s work queue synchronizes access to the stream format.

## See Also

### Working with stream formats

- [GetCurrentStreamFormat](videodriverkit/iouservideostream/getcurrentstreamformat.md)
- [SetAvailableStreamFormats](videodriverkit/iouservideostream/setavailablestreamformats.md)
- [GetAvailableStreamFormats](videodriverkit/iouservideostream/getavailablestreamformats.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)
