Based on JSquish library for DXT image compression by S. Brown, with small modifications in order to allow for concurrent calls to compression methods. Moreover, the ClusterFit algorithm was tweaked a little bit, which makes it about twice as fast.
Add this to build.sbt
:
libraryDependencies += "com.github.memo33" % "jsquish" % "2.0.1"