---
title: availableRawPhotoPixelFormatTypes
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturephotooutput/availablerawphotopixelformattypes-9t9k5
---

# availableRawPhotoPixelFormatTypes

The pixel formats the capture output supports for RAW photo capture.

## Declaration

```swift
@nonobjc var availableRawPhotoPixelFormatTypes: [OSType] { get }
```

## Discussion

Discussion To capture a photo in RAW format, use the init(rawPixelFormatType:) or init(rawPixelFormatType:processedFormat:) initializer to create your photo settings object. The value for that initializer’s rawPixelFormatType parameter must be one of the Bayer RAW format identifiers listed in this array. note: Read this property only after adding the photo capture output to an AVCaptureSession object containing a video source. If the photo capture output isn’t connected to a session with a video source, this array is empty. Not all devices support RAW image capture. If the current device doesn’t support RAW capture, this array is empty. This property supports key-value observing.

## See Also

### Determining supported pixel formats

- [availablePhotoPixelFormatTypes](avfoundation/avcapturephotooutput/availablephotopixelformattypes-3ydgm.md)
- [supportedPhotoPixelFormatTypes(for:)](avfoundation/avcapturephotooutput/supportedphotopixelformattypes(for:).md)
- [supportedRawPhotoPixelFormatTypes(for:)](avfoundation/avcapturephotooutput/supportedrawphotopixelformattypes(for:).md)
- [isAppleProRAWPixelFormat(_:)](avfoundation/avcapturephotooutput/isappleprorawpixelformat(_:).md)
- [isBayerRAWPixelFormat(_:)](avfoundation/avcapturephotooutput/isbayerrawpixelformat(_:).md)
