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

Problems with ippiMalloc funciton

dpundik
Beginner
422 Views
Hello!
There are some problems with the function ippiMalloc_8u_C1, that I am trying to use.
The function does allocate memory blocks with size of 1000x1000 pixels, but it seem to fail, when I'm trying to allocate really small blocks of memory, for example, 17x17 pixels.
What can be the possible explanation to this?
Thanks,
Dima.
0 Kudos
3 Replies
Vladimir_Dudnik
Employee
422 Views
Hi Dima,
why did you decide that it fails? Is it return NULL when you trying to allocate image 17x17 pixels?
Regards,
Vladimir
0 Kudos
dpundik
Beginner
422 Views
Yes, the function returns NULL.
0 Kudos
Vladimir_Dudnik
Employee
422 Views
Hi,
could you please provide piece of your code? I just test this case (17x17) and function returns a valid pointer. Did you noticed that the third parameter should be pointer to integer variable where function will store step between adjacent lines of allocated image?
Regards,
Vladimir
0 Kudos
Reply