Community
cancel
Showing results for 
Search instead for 
Did you mean: 
rustamse
Beginner
68 Views

Fast conversion + resizing from bgr24 to bgr32

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
68 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*/
rustamse
Beginner
68 Views

Thank you, for answer, but it doesn't help me...
Can anyone help me?
Vladimir_Dudnik
Employee
68 Views

We actually recommend to use ippiResizeSqrPixel function instead of ippiResize (which is marked as deprecated and might be removed from future releases)

Vladimir
Thomas_Jensen1
Beginner
68 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.
Gaiger_Chen
New Contributor I
68 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...
Reply