Skip to content
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

Adsk Contrib - Fix bit-depth attributes on inverse LUT writing to CTF format #2090

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

doug-walker
Copy link
Collaborator

When writing CTF files with inverse LUT1D or LUT3D, the in & out bit-depth attributes were swapped.

The scaling of the Array values for a forward LUT is communicated via the outBitDepth. An inverse LUT writes the same Array as the forward LUT, but the in and out depths need to be swapped. So for inverse LUTs, it's the inBitDepth that signals the Array scaling.

This PR fixes the issue, existing tests were reviewed, and new tests were added to ensure that inverse Lut1D and Lut3D are both read and written correctly with integer bit-depth settings.

@doug-walker doug-walker added the Bug Unwanted or incorrect behavior in currently available functionality. label Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Unwanted or incorrect behavior in currently available functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants