[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ft-devel] ouch! (burned by premultiplication)
From: |
Alexei Podtelezhnikov |
Subject: |
[ft-devel] ouch! (burned by premultiplication) |
Date: |
Tue, 22 May 2018 11:05:47 -0400 |
Werner,
I cannot believe it.
http://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/src/sfnt/pngshim.c#n52
Using premultiplied BGRA is a very bad decision. The savings are
minimal but the cost is huge: it has to be undone for gamma
correction, which loses precision and is, therefore uncacheable in our
tools.
Ouch! Ouch! Ouch! Please introduce FT_PIXEL_MODE_RGBA without premultiplication.
Thank you,
Alexei
- [ft-devel] ouch! (burned by premultiplication),
Alexei Podtelezhnikov <=