An open-source WSQ image encoder/decoder for Android based on NBIS v5.0.0.
Decoding an image:
Bitmapbmp = WSQDecoder.decode(wsqData).getBitmap();
imgView.setImageBitmap(bmp);Encoding an image:
Bitmapbmp = ...;
//higher-quality encodebyte[] wsqData = newWSQEncoder(bmp)
.setBitrate(WSQEncoder.BITRATE_5_TO_1)
.encode();
//lower-quality encodebyte[] wsqData = newWSQEncoder(bmp)
.setBitrate(WSQEncoder.BITRATE_15_TO_1)
.encode();Add dependency to your build.gradle
implementation 'io.github.michaldvorak-gemalto:wsq-android:1.2.1'