Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
ICM Pixel Buffers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ICM Pixel Buffers



Title: Message
I am trying to track down the source of gamma and color shifts when compressing and then decompressing frames.  I wrote an application using ICM decompressor calls.  I call ICMDecompressionSessionCreate, passing some pixel buffer attributes.  I want to check the gamma and color space of the CV pixel buffers that I get from the callback to ICMDecompressionSessionDecodeFrame.
 
Is there a way to get the gamma and color space of a CVPixelBuffer?
 
I tried to get the CV pixel buffer pool that should have been created by ICMDecompressionSessionCreate in order to inspect the pixel buffer attributes associated with that pool, but the call to ICMDecompressionSessionGetProperty does not return the pool.  It does not return an error code and the actual size of the output value is 4 bytes, but the pool that it returns is null.  The exact call that I am using is
 
CVPixelBufferPool pool = 0;
ByteCount actualSize = 0;
err = ICMDecompressionSessionGetProperty(sessionRef, kQTPropertyClass_ICMDecompressionSession, kICMDecompressionSessionPropertyID_PixelBufferPool, sizeof(pool), &pool, &actualSize);
 
 
Does anyone know how to get either the gamma and color space attributes associated with a CVPixelBuffer or the pixel buffer pool associated with the decompression session?
 
Thanks.
 
 
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

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 © 2011 Apple Inc. All rights reserved.