color channels getting swapped with asset catalogs and vImageBuffer_InitWithCGImage
| Originator: | kenferry | ||
| Number: | rdar://15964857 | Date Originated: | 2/1/2014 |
| Status: | Duplicate of closed bug, rdar://problem/14834615. | Resolved: | Yes |
| Product: | Product Version: | ||
| Classification: | Reproducible: | YES |
Summary: I'm seeing incorrect drawing (swapped channels) with (1) Images from asset catalog .car files (2) That are read (only read from, not modified!) with vImageBuffer_InitWithCGImage before they are drawn. Or vice versa. Drawn first, then read with vImage also gets incorrect data, with swapped color channels. See test app at https://www.dropbox.com/s/9xun5bu1psrz10c/AssetCatalogWoes.zip It looks to me like there's a cache invalidation problem in a CoreUI asset catalog image provide. Once the cache gets created for use with vImage, it gets incorrectly used for drawing or vice versa.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!