<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.8.0 -",
    "tvOS: 10.2.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "VideoToolbox",
  "identifier" : "/documentation/VideoToolbox/kVTDecompressionPropertyKey_OnlyTheseFrames",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Video Toolbox"
    ],
    "preciseIdentifier" : "c:@kVTDecompressionPropertyKey_OnlyTheseFrames"
  },
  "title" : "kVTDecompressionPropertyKey_OnlyTheseFrames"
}
-->

# kVTDecompressionPropertyKey_OnlyTheseFrames

Requests that frames be filtered by type.

```
let kVTDecompressionPropertyKey_OnlyTheseFrames: CFString
```

## Discussion

This is an optional property for video decoders to implement.  If supported, it requests that the decoder limit decoding to the frame type specified by one of the `Only These Frames Constants`. This key may be used on its own, or may appear in the dictionaries returned in the array obtained from [`kVTDecompressionPropertyKey_SuggestedQualityOfServiceTiers`](/documentation/VideoToolbox/kVTDecompressionPropertyKey_SuggestedQualityOfServiceTiers).

If [`kVTDecompressionPropertyKey_ReducedFrameDelivery`](/documentation/VideoToolbox/kVTDecompressionPropertyKey_ReducedFrameDelivery) is supported and used in conjunction with this property, the `ReducedFrameDelivery` is the proportion of the frames selected by this property. For example, a dictionary containing `[{kVTDecompressionPropertyKey_OnlyTheseFrames, kVTDecompressionProperty_OnlyTheseFrames_KeyFrames}, {kVTDecompressionPropertyKey_ReducedFrameDelivery, 0.25}]` would request that the decoder only deliver 1/4 of keyframes.

## Topics

### Frame Constants

[`kVTDecompressionProperty_OnlyTheseFrames_AllFrames`](/documentation/VideoToolbox/kVTDecompressionProperty_OnlyTheseFrames_AllFrames)

[`kVTDecompressionProperty_OnlyTheseFrames_IFrames`](/documentation/VideoToolbox/kVTDecompressionProperty_OnlyTheseFrames_IFrames)

[`kVTDecompressionProperty_OnlyTheseFrames_KeyFrames`](/documentation/VideoToolbox/kVTDecompressionProperty_OnlyTheseFrames_KeyFrames)

[`kVTDecompressionProperty_OnlyTheseFrames_NonDroppableFrames`](/documentation/VideoToolbox/kVTDecompressionProperty_OnlyTheseFrames_NonDroppableFrames)



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)