---
title: CVPixelBufferRetain
framework: corevideo
role: symbol
role_heading: Function
path: corevideo/cvpixelbufferretain
---

# CVPixelBufferRetain

Retains a pixel buffer.

## Declaration

```occ
extern CVPixelBufferRefCVPixelBufferRetain(CVPixelBufferRef texture);
```

## Parameters

- `texture`: The pixel buffer that you want to retain.

## Return Value

Return Value For convenience, the same pixel buffer you want to retain.

## Discussion

Discussion This function is equivalent to CFRetain, but is NULL safe.

## See Also

### Retaining and Releasing Pixel Buffers

- [CVPixelBufferRelease](corevideo/cvpixelbufferrelease.md)
