---
title: CVReadOnlyPixelBuffer
framework: corevideo
role: symbol
role_heading: Class
path: corevideo/cvreadonlypixelbuffer
---

# CVReadOnlyPixelBuffer

CVReadOnlyPixelBuffer provides an immutable view of the pixel data held by the pixel buffer.

## Declaration

```swift
final class CVReadOnlyPixelBuffer
```

## Topics

### Initializers

- [init(_:)](corevideo/cvreadonlypixelbuffer/init(_:).md)
- [init(unsafeBuffer:)](corevideo/cvreadonlypixelbuffer/init(unsafebuffer:).md)

### Instance Methods

- [withUnsafeBuffer(_:)](corevideo/cvreadonlypixelbuffer/withunsafebuffer(_:).md)

### Type Aliases

- [CVReadOnlyPixelBuffer.Specification](corevideo/cvreadonlypixelbuffer/specification.md)
- [CVReadOnlyPixelBuffer.UnwrappedType](corevideo/cvreadonlypixelbuffer/unwrappedtype.md)
- [CVReadOnlyPixelBuffer.ValueType](corevideo/cvreadonlypixelbuffer/valuetype.md)

### Type Properties

- [defaultResolverSpecification](corevideo/cvreadonlypixelbuffer/defaultresolverspecification.md)

## Relationships

### Conforms To

- [CMSampleBuffer.Content](coremedia/cmsamplebuffer/content.md)
- [CMSampleBuffer.ContentWithFormatDescription](coremedia/cmsamplebuffer/contentwithformatdescription.md)
- [CVBufferRepresentable](corevideo/cvbufferrepresentable.md)
- [CVImageBufferRepresentable](corevideo/cvimagebufferrepresentable.md)
- [CVPixelBufferRepresentable](corevideo/cvpixelbufferrepresentable.md)
- [Copyable](swift/copyable.md)
- [Escapable](swift/escapable.md)
- [InferenceValue.ViewRepresentable](coreai/inferencevalue/viewrepresentable.md)
- [IntentValueConvertible](appintents/intentvalueconvertible.md)
- [IntentValueExpressing](appintents/intentvalueexpressing.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Swift overlay types

- [CVMutablePixelBuffer](corevideo/cvmutablepixelbuffer.md)
- [CVPixelBufferAttributes](corevideo/cvpixelbufferattributes.md)
- [CVPixelBufferCreationAttributes](corevideo/cvpixelbuffercreationattributes.md)
- [CVPixelBufferPadding](corevideo/cvpixelbufferpadding.md)
- [CVPixelBufferPlaneProperties](corevideo/cvpixelbufferplaneproperties.md)
- [CVProResRawMetadata](corevideo/cvproresrawmetadata.md)
