• Home
  • Raw
  • Download

Lines Matching +full:container +full:- +full:rules

7 ASTC on the other hand is an extremely flexible container format which can
18 The most commonly used non-ASTC compressed formats, their color format, and
22 | -------- | ------------ | ---------- | ---------------- |
23 | BC1 | RGB+A | 4 | RGB565 + 1-bit A |
33 | ETC2 | RGB+A | 4 | RGB565 + 1-bit A |
40 **Note:** Color representations shown with a `+` symbol indicate non-correlated
43 a strength (it improves quality when compressing non-correlated signals), but
50 a container format which always decompresses in to a 4 component RGBA result.
52 1-4 components as needed on a per-block basis.
63 actually need to store a per-pixel alpha value at all.
69 ## Encoding 1-4 component data
76 specifying the swizzle using the `-esw` command line option.
79 the data from the compressed texture, assuming no additional API-level
83 | -------------- | ------------- | -------------- | ------------------ |
102 | -------- | ------------------- | --------------------- | ---------------- |
117 **1:** ASTC has no equivalent of the 1-bit punch-through alpha encoding
122 for two component data. It therefore has no direct equivalent of a two-plane
124 be emulated by setting texture component swizzles in the runtime API - e.g. via
125 `glTexParameteri()` for OpenGL ES - although it has been noted that API
138 ASTC is specified to decompress into a 16-bit per component RGBA output by
139 default, with the exception of the sRGB format which uses an 8-bit value for the
142 Decompressing in to a 16-bit per component output format is often higher than
144 an 8-bit per component source image. Most implementations of ASTC support the
145 decode mode extensions, which allow an application to opt-in to a lower
150 The ASTC format uses different data rounding rules when the decode mode
152 for the RGBA8 rounding rules, you can specify `-decode_unorm8` when compressing
157 decompressor to write an 8-bit per component output image.
159 ## Encoding non-correlated components
163 are always correlated and that alpha is non-correlated. ASTC can automatically
165 component assigned to a separate non-correlated partition to the other three.
167 The non-correlated component can be changed on a block-by-block basis, so the
169 image. This means that there is no need for non-correlated data to be stored
182 BC5; store the X and Y components of a unit-length normal. The Z component of
193 nml.xy = nml.xy * 2.0 - 1.0; // Unpack normals (range -1 to +1)
194 nml.z = sqrt(1 - dot(nml.xy, nml.xy)); // Compute Z, given unit length
197 the `-normal` command line option. If you wish to use a different pair of
198 components you can specify a custom swizzle after setting the `-normal`
200 `-normal -esw gggr` for compression and `-normal -dsw arz1` for decompression.
211 (compress using the `-cs` command line option rather than the `-cl` command
217 be stored in the sRGB color space for `-cs` to function correctly.
226 the `-ch` compressor option which will treat the RGB components as HDR, but the
230 is also storing an HDR value. For these cases use the `-cH` compressor option
233 - - -
235 _Copyright © 2019-2024, Arm Limited and contributors. All rights reserved._