Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

ippiMalloc_32f_C3 Error in steps

sohrab
Beginner
519 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
519 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