---
title: matchSource
framework: avfoundation
role: symbol
role_heading: Type Property
path: avfoundation/avassetimagegenerator/dynamicrangepolicy-swift.struct/matchsource
---

# matchSource

A policy that preserves the color parameters of the source media.

## Declaration

```swift
static let matchSource: AVAssetImageGenerator.DynamicRangePolicy
```

## Discussion

Discussion By default, an image generator converts images to standard dynamic range. When working with HDR video, use this policy to preserve HDR color in the resulting images.

## See Also

### Policies

- [forceSDR](avfoundation/avassetimagegenerator/dynamicrangepolicy-swift.struct/forcesdr.md)
