{"_id":"@abasb75/openjph","_rev":"7-0f891f33f97e807a8907a036d13cf290","name":"@abasb75/openjph","dist-tags":{"beta":"0.25.2","latest":"0.25.3-B"},"versions":{"0.18.2-test1":{"name":"@abasb75/openjph","version":"0.18.2-test1","author":"","_id":"@abasb75/openjph@0.18.2-test1","maintainers":[{"name":"abasb75","email":"abasbagheria@gmail.com"}],"homepage":"https://github.com/abasb75/openjpeg#readme","bugs":{"url":"https://github.com/abasb75/openjpeg/issues"},"dist":{"shasum":"ffe7b5873250a2fdcbd9fa8f30a7d0961a4df0bd","tarball":"https://registry.npmjs.org/@abasb75/openjph/-/openjph-0.18.2-test1.tgz","fileCount":8,"integrity":"sha512-ZL9Sht0nf7zivCic9rUY5Wabzdln0cPkw/NucnpyaVh07WxADrsTvBbkhfGRISirGOMaQe/9DfWE9wzl0wNsLQ==","signatures":[{"sig":"MEYCIQDFYz/pqCkRIzAzggQYrX3vgZsQwJcv4qmUqYGWNblHEgIhAJV2iKGJld0h6doetrMrCuLj6Sr4X//bkTTrZ1AAJUJ5","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":391742},"main":"index.js","types":"interface.d.ts","gitHead":"42203b5a49f9a70fb36e5203de880c1b861f3688","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"abasb75","email":"abasbagheria@gmail.com"},"repository":{"url":"https://github.com/abasb75/openjpeg/raction.git","type":"git"},"_npmVersion":"10.9.0","description":"Openjpeg for browsers","directories":{"test":"test"},"_nodeVersion":"22.11.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/openjph_0.18.2-test1_1734455797363_0.06189927543490614","host":"s3://npm-registry-packages-npm-production"}},"0.18.2":{"name":"@abasb75/openjph","version":"0.18.2","author":"","_id":"@abasb75/openjph@0.18.2","maintainers":[{"name":"abasb75","email":"abasbagheria@gmail.com"}],"homepage":"https://github.com/abasb75/openjpeg#readme","bugs":{"url":"https://github.com/abasb75/openjpeg/issues"},"dist":{"shasum":"568dfcee3a37996bd8730955fe150a5b85857a7b","tarball":"https://registry.npmjs.org/@abasb75/openjph/-/openjph-0.18.2.tgz","fileCount":8,"integrity":"sha512-QJ5q86czNhUssy85gGScunTap3+DhTvmHmG6ldM0Vj8fbRvp6XyNpjiTAwmM5TJn3CyL0L+/C8COKNA9l6TnnQ==","signatures":[{"sig":"MEYCIQDNQ9IAWqlLZSUqztbuSW7LGpeMHIsBXB5OxYRyxFipyAIhAL8Cr9DNX6+FYEptd5+6MWjPl92XiWYwaOxjaoWtOnNK","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":391886},"main":"index.js","types":"interface.d.ts","gitHead":"42203b5a49f9a70fb36e5203de880c1b861f3688","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"abasb75","email":"abasbagheria@gmail.com"},"repository":{"url":"https://github.com/abasb75/openjpeg/raction.git","type":"git"},"_npmVersion":"10.9.0","description":"Openjph for browsers","directories":{"test":"test"},"_nodeVersion":"22.11.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/openjph_0.18.2_1734494466492_0.6352075249598796","host":"s3://npm-registry-packages-npm-production"}},"0.25.2-b":{"name":"@abasb75/openjph","version":"0.25.2-b","keywords":["JLS","charls"],"author":"","_id":"@abasb75/openjph@0.25.2-b","maintainers":[{"name":"abasb75","email":"abasbagheria@gmail.com"}],"homepage":"https://github.com/abasb75/charls-js#readme","bugs":{"url":"https://github.com/abasb75/charls-js/issues"},"dist":{"shasum":"99ce7341101813b0cc7b7823a021116b4da94d49","tarball":"https://registry.npmjs.org/@abasb75/openjph/-/openjph-0.25.2-b.tgz","fileCount":16,"integrity":"sha512-QE1izz2SCGGA0eQyLTaWpbuY3NwsxzFgPxK0LWDQxnLsbWB2CHGG+FOaZVwLxYrdmz2AW/K2FIqAHMETvPbpvg==","signatures":[{"sig":"MEQCICRAIbDnv1S8Lj8TDC3qHxZ6iTJoU3fphjFaQwiNW3KMAiBxgjpVf+GTTPlksU8qMtVpH2NbbJjucISl32Yq+bvmkw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2352624},"type":"module","exports":{"./*":"./dist/*","./decode":"./dist/htj2k_es6_encoder.js","./encode":"./dist/htj2k_es6_decoder.js"},"gitHead":"c448e61606f08fab96c8dea33cd700b891c68638","scripts":{"dev":"concurrently \"npx tailwindcss -i ./styles/index.css -o ./styles/style.css --watch\" \"npx live-server --port=8000 ./\""},"_npmUser":{"name":"abasb75","email":"abasbagheria@gmail.com"},"repository":{"url":"https://github.com/abasb75/charls-js/raction.git","type":"git"},"_npmVersion":"10.9.2","description":"charls for js (jls file codec)","directories":{"test":"test"},"_nodeVersion":"22.15.0","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"fs":"^0.0.1-security","path":"^0.12.7","tsup":"^8.5.1","postcss":"^8.5.6","typescript":"^5.9.3","live-server":"^1.2.2","tailwindcss":"4.1","autoprefixer":"^10.4.22","concurrently":"^9.2.1","@tailwindcss/cli":"^4.1.18","esbuild-copy-files":"^0.2.16"},"_npmOperationalInternal":{"tmp":"tmp/openjph_0.25.2-b_1765862190332_0.8730514426187888","host":"s3://npm-registry-packages-npm-production"}},"0.25.2":{"name":"@abasb75/openjph","version":"0.25.2","keywords":["JLS","charls"],"author":"","_id":"@abasb75/openjph@0.25.2","maintainers":[{"name":"abasb75","email":"abasbagheria@gmail.com"}],"homepage":"https://github.com/abasb75/charls-js#readme","bugs":{"url":"https://github.com/abasb75/charls-js/issues"},"dist":{"shasum":"bb8ef42ac1ae51f2077fb4db296c773e468d3c7e","tarball":"https://registry.npmjs.org/@abasb75/openjph/-/openjph-0.25.2.tgz","fileCount":16,"integrity":"sha512-Ig3U+NkrDq8CGmolR37atmLWKXTC0U07L7rY5VKsq0wyzJqx0BDBQTQL83VA9blnxQ6GmISCg4Fu/0Xdqd3h9Q==","signatures":[{"sig":"MEQCIAG6yBrKonTjUuFKUOP3F3oSlTYP+pZByp9f8ftH1Ag0AiAdRGUmnV0T4+F7OghwJsySlV71qejauMwqzHOBjpOa0w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2352622},"type":"module","exports":{"./*":"./dist/*","./decode":"./dist/htj2k_es6_encoder.js","./encode":"./dist/htj2k_es6_decoder.js"},"gitHead":"c448e61606f08fab96c8dea33cd700b891c68638","scripts":{"dev":"concurrently \"npx tailwindcss -i ./styles/index.css -o ./styles/style.css --watch\" \"npx live-server --port=8000 ./\""},"_npmUser":{"name":"abasb75","email":"abasbagheria@gmail.com"},"repository":{"url":"https://github.com/abasb75/charls-js/raction.git","type":"git"},"_npmVersion":"10.9.2","description":"charls for js (jls file codec)","directories":{"test":"test"},"_nodeVersion":"22.15.0","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"fs":"^0.0.1-security","path":"^0.12.7","tsup":"^8.5.1","postcss":"^8.5.6","typescript":"^5.9.3","live-server":"^1.2.2","tailwindcss":"4.1","autoprefixer":"^10.4.22","concurrently":"^9.2.1","@tailwindcss/cli":"^4.1.18","esbuild-copy-files":"^0.2.16"},"_npmOperationalInternal":{"tmp":"tmp/openjph_0.25.2_1765862565245_0.21527320592006838","host":"s3://npm-registry-packages-npm-production"}},"0.25.3":{"name":"@abasb75/openjph","version":"0.25.3","keywords":["JLS","charls"],"author":"","_id":"@abasb75/openjph@0.25.3","maintainers":[{"name":"abasb75","email":"abasbagheria@gmail.com"}],"homepage":"https://github.com/abasb75/charls-js#readme","bugs":{"url":"https://github.com/abasb75/charls-js/issues"},"dist":{"shasum":"648adf752c9ddbe76fe43ccaab83f5227f7fabc8","tarball":"https://registry.npmjs.org/@abasb75/openjph/-/openjph-0.25.3.tgz","fileCount":16,"integrity":"sha512-7rZlHhBP8eSi8EEak6n9WpjUHUzZ5SwpfbOncna0JncvR7QB/42fqT5LX9okRJhN98dx0oBUnzT3Hjn6Ij8JsA==","signatures":[{"sig":"MEQCIDoRhsuPldSd87Dl3aKuG5fxVyKPZRsndwgfcE0sHNF8AiAJaCYU8FFof7cb5BoNsl4lAZOeTeG6uvEqyrSx9TNW5w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2353347},"type":"module","exports":{"./*":"./dist/*","./decode":"./dist/htj2k_es6_decoder.js","./encode":"./dist/htj2k_es6_encoder.js"},"gitHead":"c448e61606f08fab96c8dea33cd700b891c68638","scripts":{"dev":"concurrently \"npx tailwindcss -i ./styles/index.css -o ./styles/style.css --watch\" \"npx live-server --port=8000 ./\""},"_npmUser":{"name":"abasb75","email":"abasbagheria@gmail.com"},"repository":{"url":"https://github.com/abasb75/charls-js/raction.git","type":"git"},"_npmVersion":"10.9.2","description":"charls for js (jls file codec)","directories":{"test":"test"},"_nodeVersion":"22.15.0","_hasShrinkwrap":false,"devDependencies":{"fs":"^0.0.1-security","path":"^0.12.7","tsup":"^8.5.1","postcss":"^8.5.6","typescript":"^5.9.3","live-server":"^1.2.2","tailwindcss":"4.1","autoprefixer":"^10.4.22","concurrently":"^9.2.1","@tailwindcss/cli":"^4.1.18","esbuild-copy-files":"^0.2.16"},"_npmOperationalInternal":{"tmp":"tmp/openjph_0.25.3_1765865659279_0.21263329514863716","host":"s3://npm-registry-packages-npm-production"}},"0.25.3-A":{"name":"@abasb75/openjph","version":"0.25.3-A","keywords":["HTJ2K","openjph"],"author":"","_id":"@abasb75/openjph@0.25.3-A","maintainers":[{"name":"abasb75","email":"abasbagheria@gmail.com"}],"homepage":"https://github.com/abasb75/openjphjs#readme","bugs":{"url":"https://github.com/abasb75/openjphjs/issues"},"dist":{"shasum":"aa5322c74bc9533d9bf9e2f65a8fc83308524861","tarball":"https://registry.npmjs.org/@abasb75/openjph/-/openjph-0.25.3-A.tgz","fileCount":16,"integrity":"sha512-z18e8L8wk+WCgGvuBTjZY5cepl0RgG4/QiOWDit50LagS/56MwtVfR+QkXuLataSPcy2rSyEw/NIbGIsRFio+w==","signatures":[{"sig":"MEUCIG9W73PhacZixjH2FcmQtm2mA2IG4XTaZbUeNkXy9xTuAiEA1KsZnJs4V9UVNzRfaqd/YzXlAaZxD2ar7TTqjDhHn/A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2353584},"type":"module","exports":{"./*":"./dist/*","./decode":{"import":"./dist/htj2k_es6_decoder.js","require":"./dist/htj2k_inline_decoder.js"},"./encode":{"import":"./dist/htj2k_es6_encoder.js","require":"./dist/htj2k_inline_decoder.js"}},"gitHead":"2beb9a202ce8d38d389bc0bc45a6173879a55b37","scripts":{"dev":"concurrently \"npx tailwindcss -i ./styles/index.css -o ./styles/style.css --watch\" \"npx live-server --port=8000 ./\""},"_npmUser":{"name":"abasb75","email":"abasbagheria@gmail.com"},"repository":{"url":"https://github.com/abasb75/openjphjs/raction.git","type":"git"},"_npmVersion":"10.9.2","description":"openjph for js (jls file codec)","directories":{"test":"test"},"_nodeVersion":"22.15.0","_hasShrinkwrap":false,"devDependencies":{"fs":"^0.0.1-security","path":"^0.12.7","tsup":"^8.5.1","postcss":"^8.5.6","typescript":"^5.9.3","live-server":"^1.2.2","tailwindcss":"4.1","autoprefixer":"^10.4.22","concurrently":"^9.2.1","@tailwindcss/cli":"^4.1.18","esbuild-copy-files":"^0.2.16"},"_npmOperationalInternal":{"tmp":"tmp/openjph_0.25.3-A_1766076788455_0.10111439246279819","host":"s3://npm-registry-packages-npm-production"}},"0.25.3-B":{"name":"@abasb75/openjph","version":"0.25.3-B","description":"openjph for js (jls file codec)","directories":{"test":"test"},"keywords":["HTJ2K","openjph"],"exports":{"./decode":{"require":"./dist/htj2k_inline_decoder.js","import":"./dist/htj2k_es6_decoder.js"},"./encode":{"require":"./dist/htj2k_inline_decoder.js","import":"./dist/htj2k_es6_encoder.js"},"./*":"./dist/*"},"scripts":{"dev":"concurrently \"npx tailwindcss -i ./styles/index.css -o ./styles/style.css --watch\" \"npx live-server --port=8000 ./\""},"author":"","repository":{"type":"git","url":"https://github.com/abasb75/openjphjs/raction.git"},"bugs":{"url":"https://github.com/abasb75/openjphjs/issues"},"homepage":"https://github.com/abasb75/openjphjs#readme","devDependencies":{"@tailwindcss/cli":"^4.1.18","autoprefixer":"^10.4.22","concurrently":"^9.2.1","esbuild-copy-files":"^0.2.16","fs":"^0.0.1-security","live-server":"^1.2.2","path":"^0.12.7","postcss":"^8.5.6","tailwindcss":"4.1","tsup":"^8.5.1","typescript":"^5.9.3"},"_id":"@abasb75/openjph@0.25.3-B","gitHead":"2beb9a202ce8d38d389bc0bc45a6173879a55b37","_nodeVersion":"22.15.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-WEpLeEcmZxaoNwsDIWElhoKURjQFKycBAQSM4mMnwX7tg7TRw0iz5yGMz7Z+k0M1z6y9KWPeVsMaAxLy08IoVw==","shasum":"612c803f108272540fcb2073b2ac1d0dd3b8f03f","tarball":"https://registry.npmjs.org/@abasb75/openjph/-/openjph-0.25.3-B.tgz","fileCount":16,"unpackedSize":2353562,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIA9OqWn0cAqSEk3hAAioki0AUXM64D0l0r7+SLxdGXu8AiAhy3ZKPyj/9VIiM8gUpo9AAHMdCj7g2Klh2Oob306ddw=="}]},"_npmUser":{"name":"abasb75","email":"abasbagheria@gmail.com"},"maintainers":[{"name":"abasb75","email":"abasbagheria@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/openjph_0.25.3-B_1766082541437_0.15904074957700232"},"_hasShrinkwrap":false}},"time":{"created":"2024-12-17T17:16:37.287Z","modified":"2025-12-18T18:29:01.771Z","0.18.2-test1":"2024-12-17T17:16:37.529Z","0.18.2":"2024-12-18T04:01:06.679Z","0.25.2-b":"2025-12-16T05:16:30.622Z","0.25.2":"2025-12-16T05:22:45.449Z","0.25.3":"2025-12-16T06:14:19.473Z","0.25.3-A":"2025-12-18T16:53:08.626Z","0.25.3-B":"2025-12-18T18:29:01.589Z"},"bugs":{"url":"https://github.com/abasb75/openjphjs/issues"},"homepage":"https://github.com/abasb75/openjphjs#readme","keywords":["HTJ2K","openjph"],"repository":{"type":"git","url":"https://github.com/abasb75/openjphjs/raction.git"},"description":"openjph for js (jls file codec)","maintainers":[{"name":"abasb75","email":"abasbagheria@gmail.com"}],"readme":"# openjph (0.25.3)\n\n```bash\nnpm i @abasb75/openjph\n```\n\n# Demo\nhttps://abasb75.github.io/openjphjs\n\n# Example\n\n```typescript\n\nimport OpenJPHDecoder from \"@abasb75/openjph/decode\";\n\n\nvar openjphDecoder:any = null;\n\nclass HTJ2K{\n\n    static async decode(pixelData: DataView) {\n        if(!openjphDecoder ){\n            const wasmUrl = new URL(\"@abasb75/openjph/htj2k_es6_decoder.wasm?url\", import.meta.url).href;\n            openjphDecoder = await OpenJPHDecoder({\n                locateFile: () => wasmUrl\n            });\n            \n        }\n\n        const uint8Array = new Uint8Array(pixelData.buffer);\n        const iterations = 1;\n        const decodeLevel = 0;\n\n\n        const decoder = new openjphDecoder.HTJ2KDecoder();\n\n        const encodedBuffer = decoder.getEncodedBuffer(uint8Array.length);\n        encodedBuffer.set(uint8Array);\n\n        decoder.readHeader();\n\n        const resolutionAtLevel = decoder.calculateSizeAtDecompositionLevel(decodeLevel);\n        const numDecompositions = decoder.getNumDecompositions();\n\n        for (let i = 0; i < iterations; i++) {\n            decoder.decodeSubResolution(decodeLevel);\n        }\n\n        const frameInfo = decoder.getFrameInfo();\n\n        const blockDimensions = decoder.getBlockDimensions();\n        const isReversible = decoder.getIsReversible()\n\n        const progressionOrder = decoder.getProgressionOrder();\n\n        const decodedBuffer = decoder.getDecodedBuffer();\n\n        \n\n    }\n\n\n}\n\n\nexport default HTJ2K;","readmeFilename":"README.md"}