Make handling of paletted images saner

NEW
Unassigned

Status

()

9 years ago
5 years ago

People

(Reporter: jrmuizel, Unassigned)

Tracking

Trunk
x86
Mac OS X
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

9 years ago
I was talking with Joe about how we handle paletted images. It didn't sounds that good. Here's my proposal:

- Start by decoding the first frame of a GIF to a paletted memory buffer.
- If there are frames that follow:
 - we know that we have an animated image that we're going to keep in paletted form.
 - decode the remaining frames into paletted form.
- Otherwise we have a single frame:
 - Convert from paletted to ARGB32 and discard the paletted buffer.
We still probably want this. At minimum, it will reduce the amount of memory animated GIFs use by a little bit.
You need to log in before you can comment on or make changes to this bug.