Intel® Integrated Performance Primitives
Community support and discussions relating to developing high-performance vision, signal, security, and storage applications.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

UMC Memory Allocator

sadedoyin
Beginner
124 Views
Hi guys could someone please explain how the UMC Memory Allocator and the Default Memory Allocator can be used to implement an external Memory Allocater (users own memory control strategy)? Is there an example of this being done?
0 Kudos
4 Replies
Joseph_S_Intel
Employee
124 Views

You right, we have no example of a pure DefaultMemoryAllocator or user applied memory control policy.

But the MPEG2 demuxer may be used as an example of such an approach.

Please look at umc_demuxer.h and umc_demuxer.cpp.

The demuxer class member m_pMemoryAllocator is a MemoryAllocator (not directly used because this is an abstract base class) used to provide user defined memory for the frame constructor.

This member will be created as a DefaultMemoryAllocator object and then used by the frame constructor.

sadedoyin
Beginner
124 Views
Thanks for your response.


Can the i_malloc package located in the advanced_usage/tools/linkage also be used to modify the memory allocation if I force the i_malloc i_calloc i_realloc and i_free to point to my implementations of alloc. Would this change the whole the IPP libraries including the NEW implementations?

If so how would I force IPP to use my alloc?



sadedoyin
Beginner
124 Views
Anyone have any ideas on how to use the malloc package located in advanced_usage?
sadedoyin
Beginner
124 Views
Anyone have any idea on how to use the Alloc packed located within advanced usage??
Reply