https://bugs.documentfoundation.org/show_bug.cgi?id=160431

--- Comment #11 from KJP <[email protected]> ---
In which case libreoffice-2.4.2.2/vcl/source/filter/webp/reader.cxx line 244
looks suspicious. If you've rewritten the code to use alpha rather than
transparency, why subtract alpha from 255 before using it?

238             const unsigned char* src = tmpRgbaData.data() + width * 4 * y;
239             unsigned char* dstB = access->GetScanline(y);
240             unsigned char* dstA = accessAlpha->GetScanline(y);
241             for (tools::Long x = 0; x < access->Width(); ++x)
242             {
243                 memcpy(dstB, src, 3);
244                 *dstA = 255 - *(src + 3);
245                 src += 4;
246                 dstB += 3;
247                 dstA += 1;

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to