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);

ippiResizeCenter_8u_C3R(
pSrc, srcSize, srcStep, srcRoi,
pDst, dstStep, dstRoiSize,
xFactor, yFactor,
xCenter, yCenter,
IPPI_INTER_NN);
}
Can anybody tell me what's wrong there?

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

Best Regards,
Steffen.

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 https://premier.intel.com Please login to this URL and follow up with our support engineers. Please also provide test case and image files if you have.

Thanks,
Ying S
Intel Corp.

Login to leave a comment.