<!--
{
  "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/CVPixelBufferGetBaseAddressOfPlane(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Video"
    ],
    "preciseIdentifier" : "c:@F@CVPixelBufferGetBaseAddressOfPlane"
  },
  "title" : "CVPixelBufferGetBaseAddressOfPlane(_:_:)"
}
-->

# CVPixelBufferGetBaseAddressOfPlane(_:_:)

Returns the base address of the plane at the specified plane index.

```
func CVPixelBufferGetBaseAddressOfPlane(_ pixelBuffer: CVPixelBuffer, _ planeIndex: Int) -> UnsafeMutableRawPointer?
```

## Parameters

`pixelBuffer`

The pixel buffer containing the plane whose base address you want to obtain.

`planeIndex`

The index of the plane.

## Return Value

The base address of the plane, or `NULL` for nonplanar pixel buffers.

## Discussion

Retrieving the base address for a pixel buffer requires that the buffer base address be locked using the [`CVPixelBufferLockBaseAddress(_:_:)`](/documentation/CoreVideo/CVPixelBufferLockBaseAddress(_:_:)) function.

---

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)