Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

Fast conversion + resizing from bgr24 to bgr32

rustamse
Beginner
1,133 Views
How to convert fast frombgr24 bitmap to bgr32 bitmap ???
I use functionsippiResize_8u_C3R for resizing andippiSwapChannels_8u_C3C4R conversion (frombgr24 bitmap to bgr32 bitmap).
Downscaling works fast, but Upscaling works very slow for me.
I useIPPI_INTER_LINEAR interpolation in scaling.
0 Kudos
5 Replies
Gaiger_Chen
New Contributor I
1,133 Views
HI

Do you Initialize the IPP?

You could just use the fellow function, maybe it is helpful for you.

void SetUpIpp(void)
{

IppCpuType cpu;
cpu = ippGetCpuType();
ippInitCpu(cpu);
ippEnableCpu(cpu);
ippInit();

}/*SetUpIpp*/
0 Kudos
rustamse
Beginner
1,133 Views
Thank you, for answer, but it doesn't help me...
Can anyone help me?
0 Kudos
Vladimir_Dudnik
Employee
1,133 Views
We actually recommend to use ippiResizeSqrPixel function instead of ippiResize (which is marked as deprecated and might be removed from future releases)

Vladimir
0 Kudos
Thomas_Jensen1
Beginner
1,133 Views
Do you know what part it is, that is slow? Resize or converting from C3 to AC4?

I think that SwapChannels must be slower than ippi_Copy_8u_C3AC4R().

You should also test if Resize is slower in C3 than in AC4, and then choose to do Resize+Convert or Convert+Resize.
0 Kudos
Gaiger_Chen
New Contributor I
1,133 Views
HI Vladimir:

In our application, we are very care the size of dll.

I have used IPP resize function as my resize dll:


If I use ippiResize as resize function, the dll size if about 400k. (use VS 2005 )
(include ipp_w7.h)

but if I use ippiResizeSqrPixel, the dll size is about 900k.


so.... the ippiResize does necessary...
0 Kudos
Reply