3 ms·
Yes, but "optimized" is overselling it. It stored RGBA in a premultiplied form. IMHO it was an unnecessary spec breakage, and a misplaced focus. The most expen
by pornel 5y ago
Yes, but "optimized" is overselling it. It stored RGBA in a premultiplied form.
IMHO it was an unnecessary spec breakage, and a misplaced focus. The most expensive part of decoding PNG is zlib inflate, so any reduction in input data is more important than post-processing savings.
If Apple stored app launch images (the feature it's been invented for) as opaque RGB, then colorspace conversion would also be free, and they'd also be saving a quarter of the most expensive stage of decoding. Instead, they've kept the big expensive part big and expensive, and shaved off 3 instructions from the almost free part.