Review: ociocheck

21 views
Skip to first unread message

Jeremy Selan

unread,
Feb 3, 2011, 7:19:27 PM2/3/11
to OpenColorIO Developers
Commit:
http://github.com/jeremyselan/OpenColorIO/commit/8be4a3ba174c69438cf151802f829696cb7b6555

ociocheck now does much better error checking.
It will test each colorspace and see which conversions conversions
to/from scene-linear work, and which do not. This will catch
potential errors related to missing luts, etc.

-- Jeremy

dbr/Ben

unread,
Feb 4, 2011, 5:57:48 AM2/4/11
to ocio...@googlegroups.com
Looks good!

Perhaps if --inputconfig flag is not set, it could check $OCIO? Might be a convenient way to verify the env is setup correctly, and may answer many "why doesn't OCIO work!" questions. Something like:

$ ociocheck
Checking $OCIO environment variable
Loading /wrong/path/to/config.ocio
Error: File does not exist
$ ociocheck -i /correct/path/to/config.ocio
Loading /correct/path/to/config.ocio ...

Could be useful when there env is less simple, such as inside applications that might be launched from wrapper scripts (e.g run subprocess.Popen("ociocheck") in Nuke's script editor)

Also, I wonder if requiring boost for the config-validation utility is reasonable? While I'm not fussed about the dependency, it seems like ociocheck is something that should always be available, even if built without the optional Boost. I guess the alternatives is to use something standalone like optparse.h, or copy that bit of boost?

Jeremy Selan

unread,
Feb 4, 2011, 3:00:19 PM2/4/11
to ocio...@googlegroups.com
Agreed about the --inputconfig / $OCIO option. I've added that.

I'll see what I can do about remove the boost dependency. I agree
that if we can avoid it, we should.

-- Jeremy

Malcolm Humphreys

unread,
Feb 4, 2011, 6:16:32 PM2/4/11
to ocio...@googlegroups.com
I was looking at oiio argparse but that too seems dependant on boost for something I remember.

.malcolm

dbr/Ben

unread,
Feb 7, 2011, 5:18:11 AM2/7/11
to ocio...@googlegroups.com
Only seems to use BOOST_FOREACH - should be easy enough to replace with an old-fashioned for()

Larry Gritz

unread,
Feb 7, 2011, 12:15:07 PM2/7/11
to ocio...@googlegroups.com
I don't mind at all if somebody wants to replace the BOOST_FOREACH in OIIO argparse with regular 'for' statements.

-- lg

--
Larry Gritz
l...@imageworks.com


Jeremy Selan

unread,
Feb 8, 2011, 3:40:31 PM2/8/11
to ocio...@googlegroups.com
Sounds good. I'll try to give it a shot.

-- Jeremy

Reply all
Reply to author
Forward
0 new messages