Home | History | Annotate | Download | only in filters

Lines Matching refs:sourceComponent

376             unsigned char* sourceComponent = m_premultipliedImageResult->data();
378 unsigned char* end = sourceComponent + (m_absolutePaintRect.width() * m_absolutePaintRect.height() * 4);
379 while (sourceComponent < end) {
380 int alpha = sourceComponent[3];
382 destinationComponent[0] = static_cast<int>(sourceComponent[0]) * 255 / alpha;
383 destinationComponent[1] = static_cast<int>(sourceComponent[1]) * 255 / alpha;
384 destinationComponent[2] = static_cast<int>(sourceComponent[2]) * 255 / alpha;
391 sourceComponent += 4;
410 unsigned char* sourceComponent = m_unmultipliedImageResult->data();
412 unsigned char* end = sourceComponent + (m_absolutePaintRect.width() * m_absolutePaintRect.height() * 4);
413 while (sourceComponent < end) {
414 int alpha = sourceComponent[3];
415 destinationComponent[0] = static_cast<int>(sourceComponent[0]) * alpha / 255;
416 destinationComponent[1] = static_cast<int>(sourceComponent[1]) * alpha / 255;
417 destinationComponent[2] = static_cast<int>(sourceComponent[2]) * alpha / 255;
419 sourceComponent += 4;