if (params.getRotationDegree() > 0) {
image = ImageProcessingUtils.rotate(image, params.getRotationDegree());
}
decompressor.Native_destroy();
channels.Native_destroy();
if (codestream.Exists())
codestream.Destroy();
inputSource.Native_destroy();
input.Native_destroy();
jp2_family_in.Native_destroy();