Skip to content

ktx create: Update transfer function handling#982

Merged
MarkCallow merged 34 commits intomainfrom
update_tf_handling
Feb 22, 2025
Merged

ktx create: Update transfer function handling#982
MarkCallow merged 34 commits intomainfrom
update_tf_handling

Conversation

@MarkCallow
Copy link
Collaborator

@MarkCallow MarkCallow commented Feb 12, 2025

Support in ktx create the transfer function flexibility opened up by spec. revision 2.

Note to reviewers

I suggest starting by reading the new Transfer Function Handling section of the documentation starting at line 1029 in tools/ktx/command_create.cpp. . This will give you an overview of what the updates are supposed to do and also lists the changes from the current version.

There are some unrelated changes:

  • mistakes I noticed in messages for other options
  • an error in the range of values usable for the--clevel parameter to encode for BasisU.

I took the opportunity to fix these here rather than making another PR.

INT SCALED and ASTC_SFLOAT are all very different from a sRGB value.
The old names are retained, deprecated, for backwards compatibility.

Document ktxTexture2_Set{OETF,Transfer,Primaries}.
Functionally complete. New functionality remains to be tested.
* Clean up that function.
* Fix error in texcoord origin related error message.
Update printdfd to handle newly added transfer function.
Document --no-warn-on-color-conversions in --help text.
@MarkCallow MarkCallow merged commit 7356c0d into main Feb 22, 2025
21 checks passed
@MarkCallow MarkCallow deleted the update_tf_handling branch February 22, 2025 09:08
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.

1 participant