<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/vImage/PixelBuffer/init(interleavedBuffer:)-8f6xn",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:10Accelerate6vImageO11PixelBufferVAaC9Planar8x4VRszrlE011interleavedD0AEy_AGGAEy_AC14Interleaved8x4VG_tcfc"
  },
  "title" : "init(interleavedBuffer:)"
}
-->

# init(interleavedBuffer:)

Creates a 4-channel, 8-bit-per-channel mutiple-plane buffer from a 4-channel, 8-bit-per-channel interleaved buffer.

```
init(interleavedBuffer: vImage.PixelBuffer<vImage.Interleaved8x4>)
```

## Parameters

`interleavedBuffer`

The source pixel buffer.

## Discussion

Use this function to deinterleave a pixel buffer and store the result as homogeneous planes that are represented by multiple underlying vImage buffers.

For example, the following code creates a new [`vImage.Planar8x4`](/documentation/Accelerate/vImage/Planar8x4) pixel buffer from a [`vImage.Interleaved8x4`](/documentation/Accelerate/vImage/Interleaved8x4) pixel buffer:

```swift
let src = vImage.PixelBuffer<vImage.Interleaved8x4>(
    pixelValues: [50, 100, 150, 200] as [UInt8],
    size: vImage.Size(width: 1, height: 1))

let dest = vImage.PixelBuffer<vImage.Planar8x4>(interleavedBuffer: src)

// Prints "[50] [100] [150] [200]".
dest.withUnsafePixelBuffers { pixelBuffers in
    for pixelBuffer in pixelBuffers {
        print(pixelBuffer.array)
    }
}
```

---

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)