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 Pixel Format in CVPixelBufferCreateWithBytes



Date: Wed, 24 May 2006 14:12:48 +0530
From: "Raman Sharma" <email@hidden>
Subject: Re: Pixel Format in CVPixelBufferCreateWithBytes
To: "QT-API List" <email@hidden>
Message-ID:
        <email@hidden>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Could someone please respond ?

On 5/23/06, Raman Sharma <email@hidden> wrote:
> Another question I have is :-
>
> What pixel formats does CVPixelBufferCreateWithBytes support on
> Macintosh and Windows. I have noticed that specifying anything other
> than k32ARGBPixelFormat returns an error on Windows. Not sure about
> the Mac.
>
> Is there no way to create a CVPixelBufferRef for BGRA32 or BGR24 formats ?
>
> -Raman
>


You can use CVPixelFormatDescriptionArrayCreateWithAllPixelFormatTypes to get a list of all supported formats.

/* Get an array containing all known pixel format description dictionaries */
CV_EXPORT CFArrayRef CVPixelFormatDescriptionArrayCreateWithAllPixelFormatTypes(CFAllocatorRef allocator)

Returns all the pixel format descriptions known to Core Video.

CFDictionaryRef CVPixelFormatDescriptionArrayCreateWithAllPixelFormatTypes(
   CFAllocatorRef allocator,
);

Parameters

allocator
The allocator to use when creating the description. Pass NULL to specify the default allocator.

Return Value
An array of Core Foundation dictionaries, each containing a pixel format description. See “Pixel Format Description Keys” for a list of keys relevant to the format description.

regards,
edward

 Edward Agabeg
 WWDR Engineer
 QuickTime
 Worldwide Developer Relations
 Apple

 http://www.apple.com/developer
 http://www.apple.com/quicktime

-- This message was sent from a personal account --
-- All views are mine and not necessarily shared by my employer --
 _______________________________________________
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



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.