Access Violation in ippiResizeCenter_8u_C3R

Access Violation in ippiResizeCenter_8u_C3R

In the following code sample I cannot find any failure, but the call to the ippiResizeCenter_8u_C3R function sometimes crashes with an access violation fault. The code looks like:

IppiSize srcSize= { 640, 480 };
IppiSize dstRoiSize= { 640, 480 };
IppiRect srcRoi= { 0, 0, 640, 480 };

int srcStep, dstStep;
Ipp8u* pSrc= ippiMalloc_8u_C3(640, 480, &srcStep);
Ipp8u* pDst= ippiMalloc_8u_C3(640, 480, &dstStep);

ippiSet_8u_C3CR(128, pSrc, srcStep, srcSize);

for(int i= 0; i < 100; ++i)
double xFactor= rand() * 100.0 / RAND_MAX;
double yFactor= rand() * 100.0 / RAND_MAX;
double xCenter= rand() * 100.0 / RAND_MAX;
double yCenter= rand() * 100.0 / RAND_MAX;

printf("xFactor= %f, yFactor= %f, "
"xCenter= %f, yCenter= %f
xFactor, yFactor, xCenter, yCenter);

pSrc, srcSize, srcStep, srcRoi,
pDst, dstStep, dstRoiSize,
xFactor, yFactor,
xCenter, yCenter,
Can anybody tell me what's wrong there?

Environment: Pentium IV, 2.80 GHz, 512MB RAM, WinXP SP2, IPP v4.1, VC6

Best Regards,

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Dear Customer,
This issue has been generated into our product support channel at Please login to this URL and follow up with our support engineers. Please also provide test case and image files if you have.

Ying S
Intel Corp.

Leave a Comment

Please sign in to add a comment. Not a member? Join today