Versions in this module Expand all Collapse all v1 v1.1.0 Jun 7, 2018 v1.0.0 Jun 3, 2018 Changes in this version + var FLAGS_BC4 = int(C.ckBc4) + var FLAGS_BC5 = int(C.ckBc5) + var FLAGS_CLUSTER_FIT = int(C.ckColourClusterFit) + var FLAGS_DXT1 = int(C.ckDxt1) + var FLAGS_DXT3 = int(C.ckDxt3) + var FLAGS_DXT5 = int(C.ckDxt5) + var FLAGS_ITERATIVE_CLUSTER_FIT = int(C.ckColourIterativeClusterFit) + var FLAGS_RANGE_FIT = int(C.ckColourRangeFit) + var FLAGS_SOURCE_BGRA = int(C.ckSourceBGRA) + var FLAGS_WEIGHT_BY_ALPHA = int(C.ckWeightColourByAlpha) + var METRIC_PERCEPTUAL = []float32 + var METRIC_UNIFORM = []float32 + func Compress(rgba []byte, block []byte, flags int, metric []float32) []byte + func CompressBuffer(rgba []byte, width, height int, blocks []byte, flags int, metric []float32) []byte + func CompressBufferEx(rgba []byte, width, height, pitch int, blocks []byte, flags int, ...) []byte + func CompressImage(img image.Image, flags int, metric []float32) []byte + func CompressMasked(rgba []byte, mask int, block []byte, flags int, metric []float32) []byte + func ComputeMSE(rgba []byte, width, height int, dxt []byte, flags int) (colorMSE, alphaMSE float64) + func ComputeMSEEx(rgba []byte, width, height, pitch int, dxt []byte, flags int) (colorMSE, alphaMSE float64) + func Decompress(rgba []byte, block []byte, flags int) []byte + func DecompressBuffer(rgba []byte, width, height int, blocks []byte, flags int) []byte + func DecompressBufferEx(rgba []byte, width, height, pitch int, blocks []byte, flags int) []byte + func DecompressImage(width, height int, blocks []byte, flags int) image.Image + func GetStorageRequirements(width, height, flags int) int + func ImageToBytes(img image.Image) []byte + func NRGBA(col color.Color) (r, g, b, a byte)