comparison Core/Images/ImageProcessing.cpp @ 2650:5f2dd8b6ee2f jobs

cont
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 01 Jun 2018 19:03:28 +0200
parents 89b789366596
children 65699fcb4e99
comparison
equal deleted inserted replaced
2649:193ef9c1b731 2650:5f2dd8b6ee2f
548 } 548 }
549 549
550 return; 550 return;
551 } 551 }
552 552
553 if (target.GetFormat() == PixelFormat_RGBA32 && 553 if ((target.GetFormat() == PixelFormat_RGBA32 ||
554 target.GetFormat() == PixelFormat_BGRA32) &&
554 source.GetFormat() == PixelFormat_Grayscale8) 555 source.GetFormat() == PixelFormat_Grayscale8)
555 { 556 {
556 for (unsigned int y = 0; y < source.GetHeight(); y++) 557 for (unsigned int y = 0; y < source.GetHeight(); y++)
557 { 558 {
558 const uint8_t* p = reinterpret_cast<const uint8_t*>(source.GetConstRow(y)); 559 const uint8_t* p = reinterpret_cast<const uint8_t*>(source.GetConstRow(y));