- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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*/
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*/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you, for answer, but it doesn't help me...
Can anyone help me?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We actually recommend to use ippiResizeSqrPixel function instead of ippiResize (which is marked as deprecated and might be removed from future releases)
Vladimir
Vladimir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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...
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
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page