S3 Texture Compression
S3 Texture Compression (S3TC) (sometimes also called DXTn, DXTC, or BCn) is a group of related lossy texture compression algorithms originally developed by Iourcha et al. of S3 Graphics, Ltd. for use in their Savage 3D computer graphics accelerator. The method of compression is strikingly similar to the previously published Color Cell Compression, which is in turn an adaptation of Block Truncation Coding published in the late 1970s. Unlike some image compression algorithms (e.g. JPEG), S3TC's fixed-rate data compression coupled with the single memory access (cf. Color Cell Compression and some VQ-based schemes) made it well-suited for use in compressing textures in hardware-accelerated 3D... Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.
S3 Texture Compression (S3TC) (sometimes also called DXTn, DXTC, or BCn) is a group of related lossy texture compression algorithms originally developed by Iourcha et al. of S3 Graphics, Ltd. for use in their Savage 3D computer graphics accelerator. The method of compression is strikingly similar to the previously published Color Cell Compression, which is in turn an adaptation of Block Truncation Coding published in the late 1970s. Unlike some image compression algorithms (e.g. JPEG), S3TC's fixed-rate data compression coupled with the single memory access (cf. Color Cell Compression and some VQ-based schemes) made it well-suited for use in compressing textures in hardware-accelerated 3D computer graphics. Its subsequent inclusion in Microsoft's DirectX 6.0 and OpenGL 1.3 (via the GL_EXT_texture_compression_s3tc extension) led to widespread adoption of the technology among hardware and software makers. While S3 Graphics is no longer a competitor in the graphics accelerator market, license fees have been levied and collected for the use of S3TC technology until October 2017, for example in game consoles and graphics cards. The wide use of S3TC has led to a de facto requirement for OpenGL drivers to support it, but the patent-encumbered status of S3TC presented a major obstacle to open source implementations, while implementation approaches which tried to avoid the patented parts existed. Some (e.g. US 5956431 A) of the multiple USPTO patents on S3 Texture Compression expired on October 2, 2017. At least one continuation patent, US6,775,417, however had a 165-day extension. This continuation patent expired on March 16, 2018. If c_0 > c_1 (compare these colors by interpreting them as two 16-bit unsigned numbers), then two other colors are calculated, such that for each component, c_2 = {2 \over 3} c_0 + {1 \over 3} c_1 and c_3 = {1 \over 3} c_0 + {2 \over 3} c_1 . This mode operates similarly to mode 0xC0 of the original Apple Video codec. Otherwise, if c_0 \le c_1 , then c_2 = {1 \over 2} c_0 + {1 \over 2} c_1 and c_3 is transparent black corresponding to a premultiplied alpha format. This color sometimes causes a black border surrounding the transparent area when linear texture filtering and alpha test is used, due to colors being interpolated between the color of opaque texel and neighbouring black transparent texel. The lookup table is then consulted to determine the color value for each pixel, with a value of 0 corresponding to c_0 and a value of 3 corresponding to c_3 . If \alpha_0 > \alpha_1 , then six other alpha values are calculated, such that \alpha_2 = {{6\alpha_0 + 1\alpha_1} \over 7} , \alpha_3 = {{5\alpha_0 + 2\alpha_1} \over 7} , \alpha_4 = {{4\alpha_0 + 3\alpha_1} \over 7} , \alpha_5 = {{3\alpha_0 + 4\alpha_1} \over 7} , \alpha_6 = {{2\alpha_0 + 5\alpha_1} \over 7} , and \alpha_7 = {{1\alpha_0 + 6\alpha_1} \over 7} . Otherwise, if \alpha_0 \le \alpha_1 , four other alpha values are calculated such that \alpha_2 = {{4\alpha_0 + 1\alpha_1} \over 5} , \alpha_3 = {{3\alpha_0 + 2\alpha_1} \over 5} , \alpha_4 = {{2\alpha_0 + 3\alpha_1} \over 5} , and \alpha_5 = {{1\alpha_0 + 4\alpha_1} \over 5} with \alpha_6 = 0 and \alpha_7 = 255 . The lookup table is then consulted to determine the alpha value for each pixel, with a value of 0 corresponding to \alpha_0 and a value of 7 corresponding to \alpha_7 . DXT4's color data is premultiplied by alpha, whereas DXT5's is not. Because DXT4/5 use an interpolated alpha scheme, they generally produce superior results for alpha (transparency) gradients than DXT2/3. US Patent & Trademark Office, Patent Full Text and Image Database, result for US 5956431 A USPTO Patent Assignment Search for US 5956431 A
Cite this
"S3 Texture Compression". 1790677517. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1377446952 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy