Commit Graph

5 Commits

Author SHA1 Message Date
rhinoduck 2c9b1e3a23 Do not pre-multiply JXR planar alpha twice
If the image already had pre-multiplied alpha, the decoder would
pre-multiply those already pre-multiplied values again when decoding
the alpha plane separately from the main plane.
2018-07-25 06:58:17 +08:00
rhinoduck ea05403e84 Prettify rendering of JXR images with transparency
Prevent fully transparent areas from being black (or whatever the color
values there are) when rendering JXR images with planar alpha before all
data is available.
2018-07-25 06:57:41 +08:00
rhinoduck 5059bf8c04 Initialize member variable to stay safe 2018-07-25 06:45:58 +08:00
rhinoduck cdb87b65f4 Silence compiler warnings in JXR decoder
Until the MSOT version is rewritten.
2018-07-25 06:45:29 +08:00
rhinoduck 7b7ccd5dce Add JXR support to the browser
Can be enabled/disabled at runtime by toggling the 'media.jxr.enabled'
pref (disabled by default).

Two additional prefs are provided for testing purposes:
'media.jxr.autoaccept', and 'media.jxr.advertised_mime_type'
See comments in all.js for information on what these do.

This commit includes the MS OpenTech implementation of the decoder on
the browser side with some fixes applied; see the development in Pale
Moon GitGub issue #105 or my comments in the source code for more
information.
2018-07-25 06:44:47 +08:00