Intel® Integrated Performance Primitives
Community support and discussions relating to developing high-performance vision, signal, security, and storage applications.

Max size of vectors

Yaniv_H_1
Beginner
132 Views

In many IPP API's the size type of a vector is 'int'. Two questions arise:

1. What should I do if I have a vector with size greater that 2^31?

2. What will IPP various functions return if I input them with a negative size?

0 Kudos
1 Reply
Zhen_Z_Intel
Employee
132 Views

Hi Yaniv,

1. You probably could use 64-bits integer which is type called 64s, similar as _int64 for Win and long long for Linux. Know more info about IPP data type, please refer developer reference.

2. Many IPP functions would report error message "ippStsSizeErr" if your input size of image is negative. For example, the ippiResizeGetSize.

Best regards,
Fiona

Reply