Mailing Lists: Apple Mailing Lists

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

Unsafe pixel pools - must disable aging!



I have a movie-reader baded on the QTPixelBufferVCTToCGImage sample. It works except that it is NOT TIMING-SAFE ---- if buffer processing is delayed, buffers will be overwritten by later images even though they are retained and the address locked! You can get by with that for simple movie players, but it is unacceptable for more complex applications.  This is a generic problem for all Quicktime movie-reading applications using this approach.

The problem occurs because the PixelBufferPool used during decompression apparently has an "aging" mechanism controlled by kCVPixelBufferPoolMaximumBufferAgeKey  It "ages" the pixel buffer by moving it back into the available-buffer queue even though it is locked. This is a bug. 

I am looking for help to work around this by disabling the aging mechanism----but I can not see how to get to the pixel buffer pool in order to set the kCVPixelBufferPoolMaximumBufferAgeKey value. (The type of the number to be set is not obvious either even though the value is zero.)

Thanks,

Russ


      
 _______________________________________________
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.