Calixte Denizet
e7749443a7
Change openjpeg.js license from Apache 2 to BSD 2-clause
2024-06-04 21:22:48 +02:00
Calixte Denizet
196affd8e0
Fix decoding of JPX images having an alpha channel
...
When an image has a non-zero SMaskInData it means that the image
has an alpha channel.
With JPX images, the colorspace isn't required (by spec) so when we
don't have it, the JPX decoder will handle the conversion in RGBA
format.
2024-06-03 20:08:11 +02:00
Calixte Denizet
699e8aa3e4
Update openjpeg build (bug 1896577)
...
It just contains fixes for:
- bug 1896577
- https://github.com/mozilla/pdf.js.openjpeg/issues/1
2024-05-14 10:11:58 +02:00
Calixte Denizet
55f943c4fa
Use the pdf.js warn when using jpx decoder
...
Fixes #17980 .
2024-04-22 16:02:45 +02:00
Calixte Denizet
c730a50540
Improve jpx decoding by around 20% in enabling simd support when compiling OpenJPEG
2024-04-22 13:08:47 +02:00
Calixte Denizet
ebcae3014c
[JPX] Throw an exception with the error messages returned by openjpeg
2024-04-16 19:02:24 +02:00
Calixte Denizet
0149a8fc84
Build the openjpeg-based decoder in a web environment in order to avoid issues when used in node
2024-04-16 16:55:38 +02:00
Calixte Denizet
2e83cfbbc1
[api-minor] Add a jpx decoder based on OpenJPEG 2.5.2
...
The decoder is compiled in WASM:
https://github.com/mozilla/pdf.js.openjpeg
Fixes #17289 , #17061 , #16485 , #13051 , #6365 , #4648 , #12213 .
2024-04-16 12:54:36 +02:00