# uncompyle6 version 3.7.4 # Python bytecode 3.7 (3394) # Decompiled from: Python 3.7.5 (tags/v3.7.5:5c02a39a0b, Oct 15 2019, 00:11:34) [MSC v.1916 64 bit (AMD64)] # Embedded file name: astc_conv.py from PIL import Image, ImageChops import array, tempfile, os, struct def astc_dims(fmt): if isinstance(fmt, int): return astc_dims({37808:'COMPRESSED_RGBA_ASTC_4x4_KHR', 37809:'COMPRESSED_RGBA_ASTC_5x4_KHR', 37810:'COMPRESSED_RGBA_ASTC_5x5_KHR', 37811:'COMPRESSED_RGBA_ASTC_6x5_KHR', 37812:'COMPRESSED_RGBA_ASTC_6x6_KHR', 37813:'COMPRESSED_RGBA_ASTC_8x5_KHR', 37814:'COMPRESSED_RGBA_ASTC_8x6_KHR', 37815:'COMPRESSED_RGBA_ASTC_8x8_KHR', 37816:'COMPRESSED_RGBA_ASTC_10x5_KHR', 37817:'COMPRESSED_RGBA_ASTC_10x6_KHR', 37818:'COMPRESSED_RGBA_ASTC_10x8_KHR', 37819:'COMPRESSED_RGBA_ASTC_10x10_KHR', 37820:'COMPRESSED_RGBA_ASTC_12x10_KHR', 37821:'COMPRESSED_RGBA_ASTC_12x12_KHR'}[fmt]) dims = str(fmt).split('_')[3] return [int(c) for c in dims.split('x')] def tile(f): _, w, h, _, iw, _, ih, _, _, _ = struct.unpack('