Mailing Lists: Apple Mailing Lists

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

Re: Compressing 2vuy pixels?



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.

Glenn.
_______________________________________________
quicktime-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/quicktime-api
Do not post admin requests to the list. They will be ignored.


References: 
 >Compressing 2vuy pixels? (From: "Dennis J. Wilkinson, II" <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.