| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I immediately notice 2 things:
- the wantedSourcePixelType field is not a Handle as the wantedDestinationPixelTypes field is in the corresponding decompressor struct
- it is listed as "undocumented" in the online docs
Since I only have the one Y'CbCr space to support, I tried the obvious: setting the capabilties struct's wantedPixelSize to 0 and the wantedSourcePixelType field to '2vuy', but that causes exports from QuickTime Player (even exports from movies that I know to be able to render into '2vuy') to fail immediately after calling my codec's ImageCodecPreCompress function.
That is the correct thing to do, but you should only do that if the pixelFormat of the source PixMap is '2vuy'. If the pixelType is not '2vuy', you can't force QuickTime or anything else to give you '2vuy', so you should just ask for 32bit ARGB by setting the wantedPixelSize to 32.
You should also have a cpix resource so any application that can render to '2vuy' knows that your codec can handle it.
| References: | |
| >Compressing 2vuy pixels? (From: "Dennis J. Wilkinson, II" <email@hidden>) | |
| >Re: Compressing 2vuy pixels? (From: Glenn Anderson <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.