---
title: AVVideoCompositionRenderContext
framework: avfoundation
role: symbol
role_heading: Class
path: avfoundation/avvideocompositionrendercontext
---

# AVVideoCompositionRenderContext

An object that defines the context in which custom compositors render pixel buffers.

## Declaration

```swift
class AVVideoCompositionRenderContext
```

## Overview

Overview A render context provides size and scaling information and offers a service for efficiently providing pixel buffers from a managed pool of buffers.

## Topics

### Creating the pixel buffer

- [newPixelBuffer()](avfoundation/avvideocompositionrendercontext/newpixelbuffer().md)
- [makeMutablePixelBuffer()](avfoundation/avvideocompositionrendercontext/makemutablepixelbuffer().md)

### Getting the render settings

- [videoComposition](avfoundation/avvideocompositionrendercontext/videocomposition.md)
- [highQualityRendering](avfoundation/avvideocompositionrendercontext/highqualityrendering.md)
- [renderScale](avfoundation/avvideocompositionrendercontext/renderscale.md)
- [renderTransform](avfoundation/avvideocompositionrendercontext/rendertransform.md)
- [size](avfoundation/avvideocompositionrendercontext/size.md)

### Getting pixel and edge width information

- [edgeWidths](avfoundation/avvideocompositionrendercontext/edgewidths.md)
- [AVEdgeWidths](avfoundation/avedgewidths.md)
- [pixelAspectRatio](avfoundation/avvideocompositionrendercontext/pixelaspectratio.md)
- [AVPixelAspectRatio](avfoundation/avpixelaspectratio.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Observing render context changes

- [renderContextChanged(_:)](avfoundation/avvideocompositing/rendercontextchanged(_:).md)
