| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
|
Need help trying to understand the SoftVideoOutputComponent sample. I compiled it in debug and ran it from SimpleVideoOut. The SoftCodec_DrawBand function in the transfer codec is only called when I disable echo port no matter what I do? Why? You're probably not playing back a 'raw ' movie. With the Echo Port on you're completely out of the loop and rely on getting called by the cType of the media. The transfer codec in this sample has a subType of 'raw '. You could also make an alias for 'soft' but then you would need to create a 'soft' movie -- To create a 'raw ' movie use NONE for the codec. This is also mentioned in the Readme. And when I do, SoftCodec_NewImageGWorld is called. What happened to the GWorld that the vout returned? ImageCodecNewImageGWorld is called to ask a codec to allocate memory for an offscreen buffer of non-RGB pixels for their destination. It is paired with ImageCodecDisposeImageGWorld. When the echo port is enabled, the codec is not used at all? Try it with a 'raw ' source movie so the transfer codec is called and will then be asked to render to the Echo Port and will also draw to the VOut by itself (ie. QT will not call it again to draw to the VOut). This can be confusing to people looking at this for the first time but that's the way it works. What if I only supported the 'soft' pixel type, how would that work? Exactly the same way 'raw ' is supported. You would first need to have a 'soft' source movie then add an alias or change the cType of the transfer codec to indicate it knows how to take 'soft' as a source. There's no way to easily create a 'soft' movie (I didn't really want to recommend hacking the image description of the movie) so we use 'raw ' as a synonym for our fake pixel format. regards, Edward Agabeg WWDR Engineer QuickTime and Audio 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
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.