<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCapturePhotoOutput/supportedPhotoCodecTypes(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCapturePhotoOutput(im)supportedPhotoCodecTypesForFileType:"
  },
  "title" : "supportedPhotoCodecTypes(for:)"
}
-->

# supportedPhotoCodecTypes(for:)

Returns the list of photo codecs (such as JPEG or HEVC) supported for photo data in the specified file type.

```
func supportedPhotoCodecTypes(for fileType: AVFileType) -> [AVVideoCodecType]
```

## Parameters

`fileType`

The file type (such as JFIF or HEIF) for which to obtain codec information.

## Return Value

An array of video codec types supported for encoding in the specified file type.

## Discussion

When you issue a photo capture request, you can separately specify the format for capturing or encoding image data and the container format for producing output files containing that data. However, each file type supports only a specific set of image data types.

After choosing a file type from the [`availablePhotoFileTypes`](/documentation/AVFoundation/AVCapturePhotoOutput/availablePhotoFileTypes) array, use this method to find a compatible image data codec before creating a photo settings object.

---

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)