Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CVPixelBufferCreateWithBytes returning -6680



Ashalatha <email@hidden>
the API CVPixelBufferCreateWithBytes is returning -6680 error. What is this error? I want to create 'CVPixelBufferRef' out of 'PixMapHandle'. Is there any way to do this?

% grep 6680 /System/Library/Frameworks/QuartzCore.framework/Headers/*.h
/System/Library/Frameworks/QuartzCore.framework/Headers/ CVReturn.h: kCVReturnInvalidPixelFormat = -6680,


This may mean that you're passing a pixel format code that is incorrect, or not supported by CoreVideo. CoreVideo supports a number of QuickTime-standard pixel formats, the most important of which are k32ARGBPixelFormat and k422YpCbCr8PixelFormat ('2vuy').

You can use CVPixelBufferCreateWithBytes to make a CVPixelBufferRef that shares the pixels in your PixMapHandle -- just make sure that the PixMapHandle is not disposed before your releaseCallback is called.

Sam Bushell
QuickTime Engineering

_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden

This email sent to email@hidden
References: 
 >CVPixelBufferCreateWithBytes returning -6680 (From: Ashalatha <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.