<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "VideoToolbox",
  "identifier" : "/documentation/VideoToolbox/VTMotionEstimationSessionCopySourcePixelBufferAttributes",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Video Toolbox"
    ],
    "preciseIdentifier" : "c:@F@VTMotionEstimationSessionCopySourcePixelBufferAttributes"
  },
  "title" : "VTMotionEstimationSessionCopySourcePixelBufferAttributes"
}
-->

# VTMotionEstimationSessionCopySourcePixelBufferAttributes

Copies the attributes for source pixel buffers expected by motion-estimation session.

```
extern OSStatus VTMotionEstimationSessionCopySourcePixelBufferAttributes(VTMotionEstimationSessionRef motionEstimationSession, CFDictionaryRef*attributesOut);
```

## Parameters

`attributesOut`

Points to a variable to receive the attributes dictionary.

## Discussion

This function provides a `CFDictionary` of attributes that you must release. Use this function to query
[`VTMotionEstimationSession`](/documentation/VideoToolbox/VTMotionEstimationSession) for the native source attributes. If you provide an input `CVPixelBuffer` that is
not compatible with the attributes that this function returns, [`VTMotionEstimationSession`](/documentation/VideoToolbox/VTMotionEstimationSession) automatically
converts the input pixel buffer into a compatible pixel buffer for processing.

---

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)