This commit is contained in:
2025-02-26 14:49:25 +07:00
commit 1c1d9c4474
6403 changed files with 1953774 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
/**
* JPEG Baseline decoder worker.
*/
// Do not warn if these variables were not defined before.
/* global importScripts, self, JpegImage */
importScripts('jpg.js');
self.addEventListener('message', function (event) {
// decode DICOM buffer
var decoder = new JpegImage();
decoder.parse( event.data.buffer );
// post decoded data
var res = decoder.getData(decoder.width,decoder.height);
self.postMessage([res]);
}, false);