<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.4.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreVideo",
  "identifier" : "/documentation/CoreVideo/CVPixelBufferGetWidthOfPlane(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Video"
    ],
    "preciseIdentifier" : "c:@F@CVPixelBufferGetWidthOfPlane"
  },
  "title" : "CVPixelBufferGetWidthOfPlane(_:_:)"
}
-->

# CVPixelBufferGetWidthOfPlane(_:_:)

Returns the width of the plane at a given index in the pixel buffer.

```
func CVPixelBufferGetWidthOfPlane(_ pixelBuffer: CVPixelBuffer, _ planeIndex: Int) -> Int
```

## Parameters

`pixelBuffer`

The pixel buffer whose plane width you want to obtain.

`planeIndex`

The plane index that contains the plane’s width value.

## Return Value

The width of the plane, in pixels, or `0` for nonplanar pixel buffers.

## Discussion

---

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)