Commit Graph

10 Commits

Author SHA1 Message Date
rhinoduck 361d6b8e76 Simplify libwebp usage in nsWEBPDecoder 2018-07-25 06:58:52 +08:00
rhinoduck cf532575c1 Clean up in nsWEBPDecoder a bit
Remove unneeded headers; make use of the override keyword; rename one
variable to make its meaning clearer; trim a few stray trailing spaces.
2018-07-25 06:58:50 +08:00
rhinoduck 3683f6dc1c Fix invalidation rect in nsWEBPDecoder
The last argument to nsIntRect's constructor should be height, not y2.
2018-07-25 06:58:48 +08:00
rhinoduck eef7695088 Fix memory leak in nsWEBPDecoder
FinishInternal() won't get called if an error has been posted before,
so the libwebp cleanup calls need to be in a different place; like the
destructor.
2018-07-25 06:58:45 +08:00
rhinoduck 0f37da4f2f Fix posting order in nsWEBPDecoder
As per CheckProgressConsistency() in ProgressTracker.cpp, PostSize()
should come before PostHasTransparency().
2018-07-25 06:58:44 +08:00
Pale Moon 5011f756e1 Properly support transparent WebP images with the new decoder implementation. 2018-07-25 00:57:38 +08:00
Pale Moon 1f39ab05ee Remove unnecessary frame allocations for WebP. 2018-07-25 00:57:35 +08:00
wolfbeast 97ff398f18 Get rid of non functional pointer juggling and replace it with a working data conversion.
This resolves #489.
2018-07-25 00:55:33 +08:00
wolfbeast 915a8f37a7 Use new type frame allocation.
Remove decoder-internal mImageData (let Decoder handle that!)
Decoding works now, but data transfer from mData to mImageData is still wrong.
2018-07-25 00:55:31 +08:00
wolfbeast b8cabbc735 Base import of Tycho-libwebp-work branch 2018-07-25 00:55:28 +08:00