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

ippiMalloc_32f_C3 Error in steps

sohrab
Beginner
328 Views
hi
ippiMalloc_32f_C3(4,4,&m_srcStep);
why the srcStep=64 where as it should be 48 (4*3*4) --> (pixel * depth * sizeof(float))
Regards
Sohrab
0 Kudos
1 Reply
Vladimir_Dudnik
Employee
328 Views

Hi,

there is quote from ippi manual:

The function

ippiMalloc is declared in the ippi.h file. This function allocates a memory block aligned to a 32-byte boundary for elements of different data types. Every line of the image is aligned by padding with zeros in accordance with the pStepBytes parameter, which is calculated by the function ippiMalloc and returned for further use.

Regards,
Vladimir

0 Kudos
Reply