- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 };
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);
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;
{
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);
"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);
}
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.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.
Ying S
Intel Corp.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page