---
title: rawPhotoPixelFormatType
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturephotosettings/rawphotopixelformattype
---

# rawPhotoPixelFormatType

An identifier for the Bayer RAW pixel format to deliver captured RAW photos in.

## Declaration

```swift
var rawPhotoPixelFormatType: OSType { get }
```

## Discussion

Discussion This property is read-only—you specify a RAW pixel format when creating a settings object with the init(rawPixelFormatType:), init(rawPixelFormatType:processedFormat:) initializer. When capturing RAW images, the following requirements apply: The isAutoStillImageStabilizationEnabled setting must be false. Your delegate object must implement the photoOutput(_:didFinishProcessingRawPhoto:previewPhoto:resolvedSettings:bracketSettings:error:) method. The isHighResolutionPhotoEnabled setting may be true or false, but that setting applies only to the separate processed image. (You request separate processed images with the init(rawPixelFormatType:processedFormat:) initializer. This restriction does not apply when you request RAW-only capture with the init(rawPixelFormatType:) initializer). The capture output validates these requirements when you call the capturePhoto(with:delegate:) method. If your settings and delegate do not meet these requirements, that method raises an exception.

## See Also

### Inspecting settings

- [uniqueID](avfoundation/avcapturephotosettings/uniqueid.md)
- [format](avfoundation/avcapturephotosettings/format.md)
- [processedFileType](avfoundation/avcapturephotosettings/processedfiletype.md)
- [rawFileType](avfoundation/avcapturephotosettings/rawfiletype.md)
