<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 14.0.0 -",
    "tvOS: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCapturePhotoSettings/rawPhotoPixelFormatType",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCapturePhotoSettings(py)rawPhotoPixelFormatType"
  },
  "title" : "rawPhotoPixelFormatType"
}
-->

# rawPhotoPixelFormatType

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

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

## Discussion

This property is read-only—you specify a RAW pixel format when creating a settings object with the [`init(rawPixelFormatType:)`](/documentation/AVFoundation/AVCapturePhotoSettings/init(rawPixelFormatType:)), [`init(rawPixelFormatType:processedFormat:)`](/documentation/AVFoundation/AVCapturePhotoSettings/init(rawPixelFormatType:processedFormat:)) initializer.

When capturing RAW images, the following requirements apply:

- The [`isAutoStillImageStabilizationEnabled`](/documentation/AVFoundation/AVCapturePhotoSettings/isAutoStillImageStabilizationEnabled) setting must be <doc://com.apple.documentation/documentation/Swift/false>.
- Your delegate object must implement the [`photoOutput(_:didFinishProcessingRawPhoto:previewPhoto:resolvedSettings:bracketSettings:error:)`](/documentation/AVFoundation/AVCapturePhotoCaptureDelegate/photoOutput(_:didFinishProcessingRawPhoto:previewPhoto:resolvedSettings:bracketSettings:error:)) method.
- The [`isHighResolutionPhotoEnabled`](/documentation/AVFoundation/AVCapturePhotoSettings/isHighResolutionPhotoEnabled) setting may be <doc://com.apple.documentation/documentation/Swift/true> or <doc://com.apple.documentation/documentation/Swift/false>, but that setting applies only to the separate processed image.

(You request separate processed images with the [`init(rawPixelFormatType:processedFormat:)`](/documentation/AVFoundation/AVCapturePhotoSettings/init(rawPixelFormatType:processedFormat:)) initializer. This restriction does not apply when you request RAW-only capture with the [`init(rawPixelFormatType:)`](/documentation/AVFoundation/AVCapturePhotoSettings/init(rawPixelFormatType:)) initializer).

The capture output validates these requirements when you call the [`capturePhoto(with:delegate:)`](/documentation/AVFoundation/AVCapturePhotoOutput/capturePhoto(with:delegate:)) method. If your settings and delegate do not meet these requirements, that method raises an exception.

---

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)