Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Format:ASTC file (.astc)

From ReverseEngineering.wiki
Format
Magic 13 AB A1 5C
Extensions .astc
Endianness little
On this wiki Facts · Code · Notes · Topics

The plain .astc file written by ARM's astcenc: a 16-byte header (magic 13 AB A1 5C, block size x/y/z, 24-bit image dimensions) followed by 16-byte ASTC blocks.

Header

The 16-byte header: magic (bytes 13 AB A1 5C, the little-endian form of 0x5CA1AB13), block_x, block_y, block_z (texels; a zero is treated as 1), then three 3-byte little-endian dimensions dim_x, dim_y, dim_z in texels (all must be nonzero; a 2D image has block_z 1 and dim_z 1). The number of blocks is not stored: it is ceil(dim/block) per axis, and astcenc computes the data size as blocks_x * blocks_y * blocks_z * 16, so every ASTC block is 16 bytes. The dimensions are limited to 2^24 - 1.

Notes

Code & repositories

  • https://github.com/ARM-software/astc-encoder @ 46c2caa7537aa9cd30595490a3dd33b503faa47c · license: Apache-2.0
    ARM astcenc, writes/reads the .astc file header; Apache-2.0
    Tested on: source read, not run: source read, no build · checked 2026-10-19; last activity 2026-10-15; Note: the latest release ships binaries; the wiki links only the source, never the binaries