astc_encoder

astc-encoder-py is a Python binding of astc-encoder.

It can compress images into astc textures and decompress astc textures into images. To yield the best performance, it checks the host CPU and imports the appropriate encoder implementation. Currently this is only supported on x86_64, all others use an encoder with no SIMD optimizations. The exception is aarch64, which uses the neon encoder by default.

 1"""astc-encoder-py is a  Python binding of [astc-encoder](https://github.com/ARM-software/astc-encoder).
 2
 3It can compress images into astc textures and decompress astc textures into images.
 4To yield the best performance, it checks the host CPU and imports the appropriate encoder implementation.
 5Currently this is only supported on x86_64, all others use an encoder with no SIMD optimizations.
 6The exception is aarch64, which uses the neon encoder by default.
 7"""
 8
 9__version__ = "0.1.12"
10
11from .enum import (
12    ASTCConfigFlags as ASTCConfigFlags,
13    ASTCProfile as ASTCProfile,
14    ASTCQualityPreset as ASTCQualityPreset,
15    ASTCSwizzleComponentSelector as ASTCSwizzleComponentSelector,
16    ASTCType as ASTCType,
17)
18
19from .encoder import (
20    ASTCConfig as ASTCConfig,
21    ASTCContext as ASTCContext,
22    ASTCImage as ASTCImage,
23    ASTCSwizzle as ASTCSwizzle,
24    ASTCError as ASTCError,
25    compute_error_metrics as compute_error_metrics,
26)
class ASTCError(builtins.Exception):

Common base class for all non-exit exceptions.