-
Notifications
You must be signed in to change notification settings - Fork 2
Adsk Contrib - Various improvements suggested by Claude #37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
0575f36
a3e51fc
6af79d4
6f05378
c5dca98
3adf573
eea24d6
9abd326
4a119df
222ca50
a2cb056
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| // SPDX-License-Identifier: BSD-3-Clause | ||
| // Copyright Contributors to the OpenColorIO Project. | ||
|
|
||
| #ifndef INCLUDED_OCIO_LUTLIMITS_H | ||
| #define INCLUDED_OCIO_LUTLIMITS_H | ||
|
|
||
| namespace OCIO_NAMESPACE | ||
| { | ||
|
|
||
| // Maximum number of entries supported in a 1D LUT. | ||
| constexpr unsigned long Max1DLUTLength = 300000; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
|
|
||
| // Maximum grid size supported for a 3D LUT. | ||
| // 129 allows for a MESH dimension of 7 in the 3dl file format. | ||
| constexpr unsigned long Max3DLUTLength = 129; | ||
|
|
||
| } // namespace OCIO_NAMESPACE | ||
|
|
||
| #endif // INCLUDED_OCIO_LUTLIMITS_H | ||
Uh oh!
There was an error while loading. Please reload this page.