Skip to content

Adsk Contrib - Various improvements suggested by Claude#37

Open
doug-walker wants to merge 11 commits into
mainfrom
walker/claude-fixes
Open

Adsk Contrib - Various improvements suggested by Claude#37
doug-walker wants to merge 11 commits into
mainfrom
walker/claude-fixes

Conversation

@doug-walker
Copy link
Copy Markdown

No description provided.

Signed-off-by: Doug Walker <doug.walker@autodesk.com>
Comment thread src/OpenColorIO/builtinconfigs/BuiltinConfigRegistry.cpp Outdated
Comment thread src/OpenColorIO/fileformats/FileFormat3DL.cpp Outdated
Comment thread src/OpenColorIO/fileformats/FileFormatDiscreet1DL.cpp
Comment thread src/OpenColorIO/fileformats/FileFormatDiscreet1DL.cpp
Comment thread src/OpenColorIO/fileformats/FileFormatHDL.cpp Outdated
Comment thread src/OpenColorIO/fileformats/FileFormatIridasItx.cpp Outdated
Comment thread src/OpenColorIO/fileformats/FileFormatPandora.cpp Outdated
Comment thread src/OpenColorIO/fileformats/FileFormatResolveCube.cpp Outdated
Comment thread src/OpenColorIO/SystemMonitor.cpp
Comment thread src/OpenColorIO/fileformats/FileFormatTruelight.cpp Outdated
Comment thread src/OpenColorIO/fileformats/FileFormatTruelight.cpp Outdated
Comment thread src/OpenColorIO/fileformats/FileFormatVF.cpp Outdated
Comment thread src/OpenColorIO/transforms/FixedFunctionTransform.cpp Outdated
Comment thread src/OpenColorIO/transforms/FixedFunctionTransform.cpp Outdated
Comment thread src/OpenColorIO/Config.cpp
Comment thread src/OpenColorIO/Config.cpp Outdated
Comment thread src/OpenColorIO/ContextVariableUtils.cpp Outdated
Comment thread src/OpenColorIO/ContextVariableUtils.cpp Outdated
Comment thread src/OpenColorIO/HashUtils.cpp
Copy link
Copy Markdown

@cozdas cozdas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, I noted few minor issues.

Signed-off-by: Doug Walker <doug.walker@autodesk.com>
Signed-off-by: Doug Walker <doug.walker@autodesk.com>
Copy link
Copy Markdown

@KevinJW KevinJW left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a quick read through of the diffs, did not compile or test

Comment thread src/OpenColorIO/fileformats/ctf/CTFReaderHelper.cpp Outdated
Comment thread src/OpenColorIO/OCIOZArchive.cpp Outdated
Comment thread src/OpenColorIO/OCIOZArchive.cpp Outdated
Comment thread src/OpenColorIO/Platform.cpp Outdated
Comment thread src/OpenColorIO/fileformats/FileFormatSpiMtx.cpp Outdated
Comment thread src/OpenColorIO/fileformats/ctf/CTFReaderHelper.cpp Outdated
Copy link
Copy Markdown

@remia remia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like this found quite a few issues nice to see!

Comment thread src/OpenColorIO/fileformats/ctf/CTFReaderHelper.cpp Outdated
Comment thread src/OpenColorIO/fileformats/FileFormatICC.cpp Outdated
Comment thread src/OpenColorIO/fileformats/FileFormatSpi1D.cpp
Signed-off-by: Doug Walker <doug.walker@autodesk.com>
Signed-off-by: Doug Walker <doug.walker@autodesk.com>
{

// Maximum number of entries supported in a 1D LUT.
constexpr unsigned long Max1DLUTLength = 300000;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a note, I've been looking elsewhere at the code and how we handle the 'size' of things, we may want to use size_t here and use '300000UL'.

If we turn up the warning level we have a lot of signed/unsigned and implicit conversions.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kevin, I tried compiling in clang with "-Wconversion -Wsign-conversion -Wfloat-conversion".

It generates thousands of warnings (just using "-Wall -Wextra" produces no warnings). I searched through these but did not find any for Max1DLUTLength or Max3DLUTLength.

But given that we never convert this constant to anything less than a 32-bit quantity, I don't believe there is a risk of a type conversion causing undesired behavior. Therefore, I will proceed with moving this PR to the main repo.

If you have specific fixes you'd like to propose, please continue to post here and I will make them in the final PR.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@KevinJW, Note: I did make a slight change to avoid being flagged by "-Wold-style-cast", if that was what you were seeing.

doug-walker and others added 6 commits May 5, 2026 18:32
Signed-off-by: Doug Walker <doug.walker@autodesk.com>
…#2304)

Signed-off-by: Rémi Achard <remiachard@gmail.com>
…Foundation#2281)

* Fix OpenGL ES type issues in ACES2 FixedFunction Ops

Signed-off-by: Rémi Achard <remiachard@gmail.com>

* Update src/OpenColorIO/ops/fixedfunction/FixedFunctionOpGPU.cpp

Co-authored-by: Doug Walker <doug.walker@autodesk.com>
Signed-off-by: Rémi Achard <remiachard@gmail.com>

* Add 2D texture path tests for ACES2 cusp and reach table sampling

Signed-off-by: Rémi Achard <remiachard@gmail.com>

---------

Signed-off-by: Rémi Achard <remiachard@gmail.com>
Co-authored-by: Doug Walker <doug.walker@autodesk.com>
Signed-off-by: Doug Walker <doug.walker@autodesk.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants