Comments (4)
Ah, thanks. I'll seek clarification on hardware implementations for that, and see whether we can tighten the spec; hopefully we trivially can. I'm doing other clean-up triggered by the previous issues, and hope to have an update in the near future.
from dataformat.
Here's the proper interpolation formula (resulting numbers match MSDN and AMD implementations):
Integer version:
e0, e1 - unsigned integer endpoints [0 .. 255]
weight - unsigned integer interpolation factor (from table 12.1)
((64 - weight) * e0 + weight * e1 + 32) >> 6
returns unsigned integer interpolated value [0 .. 255]
Floating-point version (results should be exactly the same as above):
floor(ep0 * (1.0 - weight / 64.0) + ep1 * (weight / 64.0) + 0.5)
from dataformat.
Thank you! A fix for this is (and other related issues) is in flight, it's just in a tangled web of other minor tweaks. It should appear soon.
from dataformat.
So much for "soon", but it should now appear in 1.1.9 and 1.2.1. Thanks!
from dataformat.
Related Issues (15)
- Copy/paste Error in KHR_DF_TRANSFER_SRGB section HOT 2
- Change default branch to 1.3 HOT 7
- BC7 Table 111 typo HOT 3
- PVRTC minimum data work count HOT 4
- RGB9E5 representation / custom float formats HOT 11
- Unsigned BC6h sampleLower is negative HOT 1
- Broken links in dataformat.1.3.html HOT 1
- MathJax script not loading due to Content-Security-Policy HOT 5
- The sRGB EOTF is a pure 2.2 power function HOT 29
- Date in the khronos.org registry page is wrong HOT 2
- Please rename default branch from 'master' to 'main' per Khronos policy HOT 6
- How to describe interleaved planes? HOT 3
- Cleanup ETC2 spec HOT 4
- Errors in Table 113 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dataformat.