OpenImageIO/oiio — pull request #200 by jeremyselan (2011-12-06 00:06:25+00:00)
Title: Add OpenColorIO Integration

Color processing now uses OpenColorIO.

Addresses issue #193.

OCIO is now a build-time optional dependency. (Defaulting to ON, if the library can be found. If OCIO is not found, the build will continue but OCIO support is disabled).

The binary ABI for OIIO is fixed no matter which build option is used, so the library can be swapped out is color processing is later determined to be needed. If OCIO is not enabled, a simple color processing implementation is included in its place.

ColorTransfer, and all associated code has been removed.

Modifications include:
- include/color.h
- ImageBufAlgo
- maketx

The location of OpenColorIO can be specified using:
OCIO_PATH: (root of OCIO install)
or OCIO_INCLUDES / OCIO_LIBRARIES if you'd like to specify those dir independently.

Those testing at SPI can update site/spi/Makefile-bits-arnold to include -DOCIO_PATH=/shots/spi/home/lib/SpComp2/OpenColorIO/spinux1-gcc44m64/v2 to MY_CMAKE_FLAGS for testing.

TODO: Add in-place, raw conversion to imageio.h. (float originally)
TODO: Add support to oiio-tool
Longer term TODO: Add support to the texture system to allow for color conversion at tile-load time