<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - pdftocairo -svg renders a jpeg image with inverted color"
href="https://bugs.freedesktop.org/show_bug.cgi?id=80719#c6">Comment # 6</a>
on <a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - pdftocairo -svg renders a jpeg image with inverted color"
href="https://bugs.freedesktop.org/show_bug.cgi?id=80719">bug 80719</a>
from <span class="vcard"><a class="email" href="mailto:carlosgc@gnome.org" title="Carlos Garcia Campos <carlosgc@gnome.org>"> <span class="fn">Carlos Garcia Campos</span></a>
</span></b>
<pre>Comment on <span class=""><a href="attachment.cgi?id=107384" name="attach_107384" title="only embed mime data if decode map is identity">attachment 107384</a> <a href="attachment.cgi?id=107384&action=edit" title="only embed mime data if decode map is identity">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=80719&attachment=107384'>[review]</a>
only embed mime data if decode map is identity
Review of <span class=""><a href="attachment.cgi?id=107384" name="attach_107384" title="only embed mime data if decode map is identity">attachment 107384</a> <a href="attachment.cgi?id=107384&action=edit" title="only embed mime data if decode map is identity">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=80719&attachment=107384'>[review]</a>:
-----------------------------------------------------------------
::: poppler/CairoOutputDev.cc
@@ +2719,5 @@
<span class="quote">> + // only embed mime data if image decode map is identiy
> + for (i = 0; i < colorMap->getNumPixelComps(); i++) {
> + if (colorMap->getDecodeLow(i) != 0.0 || colorMap->getDecodeHigh(i) != 1.0)
> + return;
> + }</span >
Looks good, maybe we could add a helper method for this, and we don't need the
comment to explain it. something like:
if (!colorMapHasIdentityDecodeMap(colorMap))
return;
Or something similar.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>