MCPcopy Create free account
hub / github.com/cisco/openh264 / WelsMalloc

Method WelsMalloc

codec/common/src/memory_align.cpp:128–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128void* CMemoryAlign::WelsMalloc (const uint32_t kuiSize, const char* kpTag) {
129 void* pPointer = WelsCommon::WelsMalloc (kuiSize, kpTag, m_nCacheLineSize);
130#ifdef MEMORY_MONITOR
131 if (pPointer != NULL) {
132 const int32_t kiMemoryLength = * ((int32_t*) ((uint8_t*)pPointer - sizeof (void**) - sizeof (
133 int32_t))) + m_nCacheLineSize - 1 + sizeof (void**) + sizeof (int32_t);
134 m_nMemoryUsageInBytes += kiMemoryLength;
135#ifdef MEMORY_CHECK
136 g_iMemoryLength = kiMemoryLength;
137#endif
138 }
139#endif//MEMORY_MONITOR
140 return pPointer;
141}
142
143void CMemoryAlign::WelsFree (void* pPointer, const char* kpTag) {
144#ifdef MEMORY_MONITOR

Callers 13

InitFrameBsBufferMethod · 0.80
TESTFunction · 0.80
SetUpMethod · 0.80
SetUpMethod · 0.80
SetUpMethod · 0.80
TESTFunction · 0.80
SetUpMethod · 0.80
SetUpMethod · 0.80
SetUpMethod · 0.80
RequestMtResourceFunction · 0.80
encoder_ext.cppFile · 0.80
AllocPictureFunction · 0.80

Calls 1

WelsMallocFunction · 0.70

Tested by

no test coverage detected