Skip to content

Repository files navigation

WSQ for Android


An open-source WSQ image encoder/decoder for Android based on NBIS v5.0.0.

Usage

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();

Set up

Add dependency to your build.gradle

implementation 'io.github.michaldvorak-gemalto:wsq-android:1.2.1'

About

A WSQ image encoder/decoder for Android

Resources

Stars

22 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages