HearthSim/decrunch

Name: decrunch

Owner: HearthSim

Description: Python wrapper around Crunch DXTc decompressor

Created: 2017-03-05 22:19:37.0

Updated: 2018-04-16 02:12:29.0

Pushed: 2017-11-03 21:33:35.0

Homepage: https://hearthsim.info

Size: 87

Language: C++

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

decrunch

Build Status

decrunch is a Python wrapper around crunch's decompressor.

Setup
Usage
rt decrunch

 open("example.crn", "rb") as f:
buf = f.read()

 decrunch.File(buf)
info = fi.info()

level in range(tex_info["levels"]):
print("Level info %i: %r" % (level, fi.info(level)))

 open("out.bc1", "wb") as f:
f.write(fi.decode_level(0))

Further image decoding requires a DXTn decompressor, such as the one that can be found in Pillow as bcn.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.