Core Video Constants Reference
| Framework | System/Library/Frameworks/QuartzCore.framework |
| Companion guide |
Overview
This document defines Core Video constants that are not associated with a particular opaque type. This is not a complete list of Core Video constants; most constants are documented with their associated opaque type.
Result Codes
The table below lists the result codes returned for Core Video. Note that these result codes are of type CVReturn, not type OSErr.
| Result Code | Value | Description |
|---|---|---|
kCVReturnSuccess | 0 | No error Available in OS X v10.3 and later. |
kCVReturnFirst | -6660 | Placeholder to mark the beginning of Core Video result codes (not returned by any functions). Available in OS X v10.3 and later. |
kCVReturnError | -6660 | An otherwise undefined error occurred. Available in OS X v10.3 and later. |
kCVReturnInvalidArgument | -6661 | Invalid function parameter. For example, out of range or the wrong type. Available in OS X v10.3 and later. |
kCVReturnAllocationFailed | -6662 | Memory allocation for a buffer or buffer pool failed. Available in OS X v10.3 and later. |
kCVReturnInvalidDisplay | -6670 | The display specified when creating a display link is invalid. Available in OS X v10.3 and later. |
kCVReturnDisplayLinkAlreadyRunning | -6671 | The specified display link is already running. Available in OS X v10.3 and later. |
kCVReturnDisplayLinkNotRunning | -6672 | The specified display link is not running. Available in OS X v10.3 and later. |
kCVReturnDisplayLinkCallbacksNotSet | -6673 | No callback registered for the specified display link. You must set either the output callback or both the render and display callbacks. Available in OS X v10.3 and later. |
kCVReturnInvalidPixelFormat | -6680 | The buffer does not support the specified pixel format. Available in OS X v10.3 and later. |
kCVReturnInvalidSize | -6681 | The buffer cannot support the requested buffer size (usually too big). Available in OS X v10.3 and later. |
kCVReturnInvalidPixelBufferAttributes | -6682 | A buffer cannot be created with the specified attributes. Available in OS X v10.3 and later. |
kCVReturnPixelBufferNotOpenGLCompatible | -6683 | The pixel buffer is not compatible with OpenGL due to an unsupported buffer size, pixel format, or attribute. Available in OS X v10.3 and later. |
kCVReturnWouldExceedAllocationThreshold | -6689 | Allocation for a pixel buffer failed because the threshold value set for the Available in OS X v10.7 and later. |
kCVReturnPoolAllocationFailed | -6690 | Allocation for a buffer pool failed, most likely due to a lack of resources. Check to make sure your parameters are in range. Available in OS X v10.3 and later. |
kCVReturnInvalidPoolAttributes | -6691 | A buffer pool cannot be created with the specified attributes. Available in OS X v10.3 and later. |
kCVReturnLast | -6699 | Placeholder to mark the end of Core Video result codes (not returned by any functions). Available in OS X v10.3 and later. |
© 2012 Apple Inc. All Rights Reserved. (Last updated: 2012-12-13)