Comments (5)
Yeah it's an odd name - couldn't think of a better one.
The flag is designed to help context creation and compression performance (optimize data tables for the specific config in use, rather than storing complete tables).
Decompression is still supported, but only for the subset of block modes and partitionings that were needed by the compressor config, so it's only safe to use for decompressing images created in that compression session (i.e. for testing image quality by doing compress -> decompress pairs). For general arbitrary image compression, don't use it.
Summary:
- Use
ASTCENC_FLG_SELF_DECOMPRESS_ONLY
on contexts you use for compression, or compression->decompression pairs. - Use
ASTCENC_FLG_DECOMPRESS_ONLY
on contexts you plan to use only for decompression. - For arbitrary contexts which may compress and decompress arbitrary images then set neither.
from kram.
P.S. Not setting this flag seems to be the trigger for the image bug you've been hitting. Investigating that one now. The astcenc
command line always sets it for compression contexts, which is why I've not been able to repro.
EDIT: Image bug should be fixed on astcenc main
.
from kram.
Will look into that. I also need to hookup the block diagnostics that you added a while back.
from kram.
I'm a little confused by the naming on this. Is this for the compressor too? I did add it just now.
I do use both the ASTC compress and decompress. Decompress mostly on x64 where ASTC isn't supported, but I want to still display the pixels. There's also this flag ASTCENC_FLG_DECOMPRESS_ONLY which I do set on the decompressor.
from kram.
Closing this, and thanks for the suggestion. I'll do some more timing numbers next week now that the bad blocks are fixed.
from kram.
Related Issues (15)
- Update SSE2NEON header HOT 2
- Support legacy DDS format? HOT 10
- How to open DDS from this file? HOT 1
- MSL shader output comparsion of hlslparser vs. spriv-cross HOT 1
- KTX to TGA, PNG or DDS at least HOT 1
- Accept uppercase file endings !?
- Provide binary builds? HOT 2
- kramv crashes opening most .ktx2 files HOT 16
- Fragment tangents/basis generates incorrect tangents. HOT 5
- Crash on macOS HOT 6
- 2d array from multiple input files HOT 4
- BC6H de/encoder HOT 3
- DDS to KTX conversion HOT 11
- Option -mipmax without effect HOT 14
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 kram.