Sorry to be the one to tell you, but I am afraid there is no way to configure these settings programmatically ( at least I found no way to do it ) as they are AVID codec specific.
You might be able to invoke the same import settings dialog used by AVID Media Composer, though, using the
MovieImportDoUserDialog()
API function.
Edit:
This might be too obvious, but have you tried to simply request YUV data from the decompression session by setting the pixel format type key in your source frame description dictionary to a YUV pixel format?
You can do this by adding the following block to your code:
// request YUV 8 Bit 4:2:2 output from the decompression session
SInt32 pixel_format = k2vuyPixelFormat; // this should be '601 (16-235)' by definition
number = CFNumberCreate( NULL, kCFNumberSInt32Type, & pixel_format );
CFDictionaryAddValue( pixelBufferAttributes, kCVPixelBufferPixelFormatTypeKey, number );
CFRelease( number );
Bjoern
2009-07-31 11:49:09