<!--
{
  "availability" : [
    "ProVideo Encoder Extensions: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Professional Video Applications",
  "identifier" : "/documentation/professional_video_applications/CompressorMediaDecoder/decodingAttributes()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Professional Video Applications"
    ],
    "preciseIdentifier" : "c:objc(pl)CompressorMediaDecoder(im)decodingAttributes"
  },
  "title" : "decodingAttributes()"
}
-->

# decodingAttributes()

Returns a set of video attributes of the decoded source media file.

```
func decodingAttributes() -> [AnyHashable : Any]!
```

## Return Value

A dictionary with key-value pairs specifying the attributes of the decoded video.

## Discussion

The decoding attribute dictionary contains the following keys:

- `width`: int32_t
- `height`: int32_t
- `pixelType`: OSType
- `pixelAspectRatio`: Double
- `frameRate`: Double
- `source-start-time-code`: Dictionary with the following keys:

`rate` (Double)

`frameNumber` (int)

`isDropFrame` (Boolean)

- `segment-start-time-code`: Dictionary with the following keys:

`rate` (Double)

`frameNumber` (int)

`isDropFrame` (Boolean)

- `segment-type`: String with one of the following values: “only”, “first”, “middle”, “last”
- `decoding-color-primaries`: NCLC integer values
- `decoding-color-transfer`: NCLC integer values
- `decoding-color-matrix`: NCLC integer values

---

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)