<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIFormat",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Core Image"
    ],
    "preciseIdentifier" : "c:@T@CIFormat"
  },
  "title" : "CIFormat"
}
-->

# CIFormat

Pixel data formats for image input, output, and processing.

```
struct CIFormat
```

## Topics

### Image Formats

[`A16`](/documentation/CoreImage/CIFormat/A16)

A 16-bit-per-pixel, fixed-point pixel format in which the sole component is alpha.

[`A8`](/documentation/CoreImage/CIFormat/A8)

An 8-bit-per-pixel, fixed-point pixel format in which the sole component is alpha.

[`ABGR8`](/documentation/CoreImage/CIFormat/ABGR8)

A 32-bit-per-pixel, fixed-point pixel format in which the alpha value precedes the blue, green, and red color components.

[`ARGB8`](/documentation/CoreImage/CIFormat/ARGB8)

A 32-bit-per-pixel, fixed-point pixel format in which the alpha value precedes the red, green, and blue color components.

[`Af`](/documentation/CoreImage/CIFormat/Af)

A 32-bit-per-pixel, full-width floating-point pixel format in which the sole component is alpha.

[`Ah`](/documentation/CoreImage/CIFormat/Ah)

A 16-bit-per-pixel, half-width floating-point pixel format in which the sole component is alpha.

[`BGRA8`](/documentation/CoreImage/CIFormat/BGRA8)

A 32-bit-per-pixel, fixed-point pixel format in which the blue, green, and red color components precede the alpha value.

[`R16`](/documentation/CoreImage/CIFormat/R16)

A 16-bit-per-pixel, fixed-point pixel format in which the sole component is a red color value.

[`R8`](/documentation/CoreImage/CIFormat/R8)

An 8-bit-per-pixel, fixed-point pixel format in which the sole component is a red color value.

[`RG16`](/documentation/CoreImage/CIFormat/RG16)

A 32-bit-per-pixel, fixed-point pixel format with only red and green color components.

[`RG8`](/documentation/CoreImage/CIFormat/RG8)

A 16-bit-per-pixel, fixed-point pixel format with only red and green color components.

[`RGB10`](/documentation/CoreImage/CIFormat/RGB10)

[`RGBA16`](/documentation/CoreImage/CIFormat/RGBA16)

A 64-bit-per-pixel, fixed-point pixel format.

[`RGBX16`](/documentation/CoreImage/CIFormat/RGBX16)

[`RGBA8`](/documentation/CoreImage/CIFormat/RGBA8)

A 32-bit-per-pixel, fixed-point pixel format in which the red, green, and blue color components precede the alpha value.

[`RGBAf`](/documentation/CoreImage/CIFormat/RGBAf)

A 128-bit-per-pixel, floating-point pixel format.

[`rgbXf`](/documentation/CoreImage/CIFormat/rgbXf)

[`RGBAh`](/documentation/CoreImage/CIFormat/RGBAh)

A 64-bit-per-pixel, floating-point pixel format.

[`rgbXh`](/documentation/CoreImage/CIFormat/rgbXh)

[`RGf`](/documentation/CoreImage/CIFormat/RGf)

A 64-bit-per-pixel, floating-point pixel format with only red and green color components.

[`RGh`](/documentation/CoreImage/CIFormat/RGh)

A 32-bit-per-pixel, floating-point pixel format with only red and green color components.

[`Rf`](/documentation/CoreImage/CIFormat/Rf)

A 32-bit-per-pixel, floating-point pixel format in which the sole component is a red color value.

[`Rh`](/documentation/CoreImage/CIFormat/Rh)

A 16-bit-per-pixel, floating-point pixel format in which the sole component is a red color value.

[`L16`](/documentation/CoreImage/CIFormat/L16)

A 16-bit-per-pixel, fixed-point pixel format in which the sole component is luminance.

[`L8`](/documentation/CoreImage/CIFormat/L8)

An 8-bit-per-pixel, fixed-point pixel format in which the sole component is luminance.

[`LA16`](/documentation/CoreImage/CIFormat/LA16)

A 32-bit-per-pixel, fixed-point pixel format with only 16-bit luminance and alpha components.

[`LA8`](/documentation/CoreImage/CIFormat/LA8)

A 16-bit-per-pixel, fixed-point pixel format with only 8-bit luminance and alpha components.

[`LAf`](/documentation/CoreImage/CIFormat/LAf)

A 64-bit-per-pixel, full-width floating-point pixel format with 32-bit luminance and alpha components.

[`LAh`](/documentation/CoreImage/CIFormat/LAh)

A 32-bit-per-pixel, half-width floating-point pixel format with 16-bit luminance and alpha components.

[`Lf`](/documentation/CoreImage/CIFormat/Lf)

A 32-bit-per-pixel, full-width floating-point pixel format in which the sole component is luminance.

[`Lh`](/documentation/CoreImage/CIFormat/Lh)

A 16-bit-per-pixel, half-width floating-point pixel format in which the sole component is luminance.

### Initializers

[`init(rawValue:)`](/documentation/CoreImage/CIFormat/init(rawValue:))



---

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)