Core Video Constants Reference

Framework
System/Library/Frameworks/QuartzCore.framework
Companion guide
Core Video Programming 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 CodeValueDescription
kCVReturnSuccess0

No error

Available in iOS 4.0 and later.

kCVReturnFirst-6660

Placeholder to mark the beginning of Core Video result codes (not returned by any functions).

Available in iOS 4.0 and later.

kCVReturnError-6660

An otherwise undefined error occurred.

Available in iOS 4.0 and later.

kCVReturnInvalidArgument-6661

Invalid function parameter. For example, out of range or the wrong type.

Available in iOS 4.0 and later.

kCVReturnAllocationFailed-6662

Memory allocation for a buffer or buffer pool failed.

Available in iOS 4.0 and later.

kCVReturnInvalidDisplay-6670

The display specified when creating a display link is invalid.

Available in iOS 4.0 and later.

kCVReturnDisplayLinkAlreadyRunning-6671

The specified display link is already running.

Available in iOS 4.0 and later.

kCVReturnDisplayLinkNotRunning-6672

The specified display link is not running.

Available in iOS 4.0 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 iOS 4.0 and later.

kCVReturnInvalidPixelFormat-6680

The buffer does not support the specified pixel format.

Available in iOS 4.0 and later.

kCVReturnInvalidSize-6681

The buffer cannot support the requested buffer size (usually too big).

Available in iOS 4.0 and later.

kCVReturnInvalidPixelBufferAttributes-6682

A buffer cannot be created with the specified attributes.

Available in iOS 4.0 and later.

kCVReturnPixelBufferNotOpenGLCompatible-6683

The pixel buffer is not compatible with OpenGL due to an unsupported buffer size, pixel format, or attribute.

Available in iOS 4.0 and later.

kCVReturnWouldExceedAllocationThreshold-6689

Allocation for a pixel buffer failed because the threshold value set for the kCVPixelBufferPoolAllocationThresholdKey key in the CVPixelBufferPoolCreatePixelBufferWithAuxAttributes function would be surpassed.

Available in iOS 4.0 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 iOS 4.0 and later.

kCVReturnInvalidPoolAttributes-6691

A buffer pool cannot be created with the specified attributes.

Available in iOS 4.0 and later.

kCVReturnLast-6699

Placeholder to mark the end of Core Video result codes (not returned by any functions).

Available in iOS 4.0 and later.