Good opensource bptc encoder

My application currently use dxt1 s3tc compression, using opensource library squish to encode in serval background threads realtime。OpenGL 4 has bptc format built-in but I don’t want to use compression built in because it needs rendering context. Are there any good quality real time open source encoder library freely available?