Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
29 Views

UMC Memory Allocator

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
Highlighted
Employee
29 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.

0 Kudos
Highlighted
Beginner
29 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?



0 Kudos
Highlighted
Beginner
29 Views

Anyone have any ideas on how to use the malloc package located in advanced_usage?
0 Kudos
Highlighted
Beginner
29 Views

Anyone have any idea on how to use the Alloc packed located within advanced usage??
0 Kudos