forked from Jaded-Encoding-Thaumaturgy/vs-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix scale_value for full-range chroma and rare formats (Jaded-Encodin…
…g-Thaumaturgy#146) * scale_value: fix docstring copypaste and clarify scale_offsets * scale_value: simplify scale_offsets impl and fix it for integer chroma The zero point on the integer chroma scale is 128, so even full-to-full-range integer conversions need to pivot around it. * scale_value: support float16/int16 and float32/int32 pairs
- Loading branch information
Showing
1 changed file
with
13 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters