hen decode it using decodeJpeg2000
            inputData.dataJS.set(pixelData)
            jpegOutputData = Module.decodeJpeg2000(inputData)

            if (jpegOutputData.hasFailed) {
              console.error("Unable to decode data");
            } else {

              // Now we convert the decoded JPEG data to a RGBA buffer and display it on a HTML canvas element
              let dstArrayBuffer = new ArrayBuffer(jpegOutputData.width * jpegOutputData.height * 4)
              let dstArray = convertDe