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

# CVPixelBufferGetExtendedPixels(_:_:_:_:_:)

Returns the amount of extended pixel padding in the pixel buffer.

```
func CVPixelBufferGetExtendedPixels(_ pixelBuffer: CVPixelBuffer, _ extraColumnsOnLeft: UnsafeMutablePointer<Int>?, _ extraColumnsOnRight: UnsafeMutablePointer<Int>?, _ extraRowsOnTop: UnsafeMutablePointer<Int>?, _ extraRowsOnBottom: UnsafeMutablePointer<Int>?)
```

## Parameters

`pixelBuffer`

The pixel buffer whose extended pixel size you want to obtain.

`extraColumnsOnLeft`

On output, the pixel row padding to the left.  Pass `NULL` if you do not want this information.

`extraColumnsOnRight`

On output, the pixel row padding to the right. Pass `NULL` if you do not want this information.

`extraRowsOnTop`

On output, the pixel row padding to the top.  Pass `NULL` if you do not want this information.

`extraRowsOnBottom`

On output, the pixel row padding to the bottom. Pass `NULL` if you do not want this information.

## 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)