---
title: "CVPixelBufferFillExtendedPixels(_:)"
framework: corevideo
role: symbol
role_heading: Function
path: "corevideo/cvpixelbufferfillextendedpixels(_:)"
---

# CVPixelBufferFillExtendedPixels(_:)

Fills the extended pixels of the pixel buffer.

## Declaration

```swift
func CVPixelBufferFillExtendedPixels(_ pixelBuffer: CVPixelBuffer) -> CVReturn
```

## Parameters

- `pixelBuffer`: The pixel buffer whose extended pixels you want to fill.

## Return Value

Return Value A Core Video result code. See Core Video Constants for possible values.

## Discussion

Discussion This function replicates edge pixels to fill the entire extended region of the image.

## See Also

### Modifying Pixel Buffers

- [CVPixelBufferLockBaseAddress(_:_:)](corevideo/cvpixelbufferlockbaseaddress(_:_:).md)
- [CVPixelBufferUnlockBaseAddress(_:_:)](corevideo/cvpixelbufferunlockbaseaddress(_:_:).md)
