Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Yaniv_H_1
Beginner
43 Views

Max size of vectors

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
43 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