Skip to content

Add KTX orientation metadata#583

Open
bmdhacks wants to merge 6 commits intoARM-software:mainfrom
bmdhacks:main
Open

Add KTX orientation metadata#583
bmdhacks wants to merge 6 commits intoARM-software:mainfrom
bmdhacks:main

Conversation

@bmdhacks
Copy link

@bmdhacks bmdhacks commented Sep 4, 2025

I'm not sure if this is correct, but my read is that most software expects ktx to be using DirectX orientation, and reading the KTX file directly into OpenGL will result in inverted textures, so we've been adding yflip but there's nothing to indicate this in the metadata.

bmdhacks and others added 6 commits September 4, 2025 13:23
Guided compression enables a two-pass workflow: an expensive initial encode generates a guide file capturing per-block structural decisions (block mode, partition count/index, format class), then subsequent re-encodes of the same image use the guide to skip the costly search and produce equivalent quality at ~6x the speed. New public API: - astcenc_generate_guide(): extract guide from compressed ASTC data - astcenc_compress_image_guided(): re-encode using a guide file - astcenc_compress_reset(): reset context between compress calls CLI flags: -guide-out <file>, -guide-in <file>, -mseovershoot <value> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
16 tests across three fixtures covering per-block encoding (self-guide, cross-preset, 1-plane, 2-plane, bit budget, format class), pipeline round-trips (guide record pack/unpack, full pipeline, determinism, constant-color blocks, mixed constant/non-constant), and a 64-block sprite-atlas stress test with exhaustive self-guide and cross-preset. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant