OpenImageIO/oiio — pull request #680 by dfelinto (2013-10-01 01:45:32+00:00)
Title: fix for associate/unassociate (and background) alpha issues for psd

Photoshop not only wasn't being converted to associated alpha, but also
it had the color mixed with a background.

Photoshop File Format: (you can find background at 0x1010)
http://www.adobe.com/devnet-apps/photoshop/fileformatashtml/#50577411_31265

Alpha Test Grid we made and used to calculate PS background/alpha formula from:
http://wiki.blender.org/index.php/File:Dev-PhotoshopAlphaGrid.png

In my own files (and oiio test suite) the background was either white or
unexistent. It doesn't hurt to read it from the file when available, though.

Patch done in collaboration and reviewed by Brecht van Lommel (@brechtvl).