Dxt
DXT decompression library
Install / Use
/learn @mauserzjeh/DxtREADME
dxt
DXT decompression library written in Go. It supports DXT1, DXT3 and DXT5 decompression to RGBA
Installation
go get -u github.com/mauserzjeh/dxt
Tests
go test -v
Usage
// import the library
import "github.com/mauserzjeh/dxt"
var dxtBytes []byte
var width uint
var height uint
// ...read the DXT encoded data...
// ...and also obtain the width and height of the image...
// decompress DXT1 to RGBA
rgbaBytes, err := dxt.DecodeDXT1(dxtBytes, width, height)
// or
// decompress DXT3 to RGBA
rgbaBytes, err := dxt.DecodeDXT3(dxtBytes, width, height)
// or
// decompress DXT5 to RGBA
rgbaBytes, err := dxt.DecodeDXT5(dxtBytes, width, height)
// check for errors
if err != nil {
log.Fatal(err)
}
// rgbaBytes should hold the decompressed RGBA data if no error happened
// R G B A R G B ...
// ie. []byte{123, 23, 234, 212, 21, 128, 52, ...}
Related Skills
node-connect
342.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
xurl
342.0kA CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.
frontend-design
84.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
