W3C home > Mailing lists > Public > www-svg@w3.org > August 2007

What does the line in feDisplacementMap about color-interpolation filters not applying to in mean?

From: Robert Longson <longsonr@gmail.com>
Date: Fri, 3 Aug 2007 17:50:29 +0100
Message-ID: <31fc788d0708030950v5306aa32n30e13bc71a7cc0c9@mail.gmail.com>
To: www-svg@w3.org

In http://www.w3.org/TR/SVG/filters.html#feDisplacementMap there is a line

The 'color-interpolation-filters'  property only applies to the in2
source image and does not apply to the in source image.

I'm not really sure what this means.

In gecko we've implemented filters by creating an sRGB bitmap of the
original drawing which we then apply the filters to. Each filter
converts its input bitmap(s) to either LinearRGB or sRGB depending on
the value of color-interpolation-filters and then processes the output
to an output bitmap in the same colour space as its converted input.
The final output is then converted back to sRGB if necessary for

For feDisplacement map we can convert the in2 source image before we
work on it but what are we supposed to do with the in source image?

a) Always convert in to LinearRGB (or sRGB)
b) Convert it based on color-interpolation rather than
c) Leave it as whatever it happens to be.

If c) then what happens if in and in2 are the same do we need two
copies of the input surface, one for in2 which we convert based on
color-displacement-filters and one for in which we don't. Also if in
is the output of another filter is in whatever
color-interpolation-filters was for that filter?

Best regards

Received on Friday, 3 August 2007 16:50:33 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:11 UTC