Code Monkey home page Code Monkey logo

Comments (5)

solidpixel avatar solidpixel commented on June 4, 2024 1

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.

solidpixel avatar solidpixel commented on June 4, 2024

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.

alecazam avatar alecazam commented on June 4, 2024

Will look into that. I also need to hookup the block diagnostics that you added a while back.

from kram.

alecazam avatar alecazam commented on June 4, 2024

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.

alecazam avatar alecazam commented on June 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.