OCIO support: Add transfer function utilities to color.h.  Refactor 
color_ocio.cpp to merge the OCIO and non-OCIO code paths and make sure that 
some basic color spaces ("linear", "sRGB", "Rec709", and "KodakLog") are 
recognized and handled properly, both when OCIO is absent as well as if it's 
present but the user's configuration doesn't recognize those well-defined 
names.  This culminates in the addition of new oiiotool commands:  
--iscolorspace, --tocolorspace, and --colorconvert, which at the very least can 
handle those color spaces regardless of OCIO-ness, but if OCIO is present also 
handles any others its configuration defines.

This sits atop another proposed (in review) set of changes for oiiotool that 
added --pop, --dup, --selectmip, and --origin.

You can merge this Pull Request by running:

  git pull https://github.com/lgritz/oiio lg-ocio

Or you can view, comment on it, or merge it online at:

  https://github.com/OpenImageIO/oiio/pull/225

-- Commit Summary --

* oiiotool enhancements:  --pop, --dup, --select, --origin
* OCIO support: Add transfer function utilities to color.h.  Refactor

-- File Changes --

M src/include/color.h (77)
M src/libOpenImageIO/CMakeLists.txt (2)
D src/libOpenImageIO/color_generic.cpp (371)
M src/libOpenImageIO/color_ocio.cpp (366)
M src/libutil/CMakeLists.txt (2)
M src/libutil/argparse.cpp (10)
D src/libutil/colortransfer.cpp (405)
M src/oiiotool/imagerec.cpp (14)
M src/oiiotool/oiiotool.cpp (229)
M src/oiiotool/oiiotool.h (36)

-- Patch Links --

  https://github.com/OpenImageIO/oiio/pull/225.patch
  https://github.com/OpenImageIO/oiio/pull/225.diff

--- 
Reply to this email directly or view it on GitHub:
https://github.com/OpenImageIO/oiio/pull/225
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to