Please check the attached .bmp files. The src.bmp is 32 bits, logo1.bmp is 24 bits. Alpha values from 0 to 255. The CPU usage of the overlay function I created is very high because theoverlay imageis calculated by each pixel(and color).
Is there a way to use ippi to improve my overlay function performance?
I have checked Overlay function using Alpha Composition in ippi. I used ippidemo.exe to test this functionality for src.bmp and logo1.bmp images. CPU usage was less than 30% on Core 2 Duo machine.
Can you check the same using ippidemo?
Ippidemo.exe - This is a demo application in the IPP installation folder (\IPP\6.1.x.xxx\ia32\demo).
Please check the attached bmp files.ippIP Demo will calculate pixels ofentire range of src.bmp. But the function I need is that only to calculate pixels when logo pixels are not black.
If you look at the out.bmp, the onlychange from src.bmp is the logo text. Compare totheoutputI got from ippi demo, the entire range of picture is darker than src.bmp.