- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
IPP samples, 7.0.3.050.
This code is a little bit buggy:
---
Ipp8u* src8u = ippiMalloc_8u_C1(roi.width, roi.height, &src8uStep);
if(0 == src8u)
return -1;
Ipp8u* buf = ippsMalloc_8u(bufSize);
if(0 == buf)
return -1;
status = ippiResizeSqrPixel_8u_C1R(pTmp, roi0, tmpStep, rect0, src8u,
src8uStep, dstRect, 1.0/factor,1.0/factor,
0.0, 0.0, IPPI_INTER_LANCZOS, buf);
if(ippStsNoErr != status)
return -1;
ippFree(buf);
---
If ippiResizeSqrPixel fails, buf is not freed.
This code is a little bit buggy:
---
Ipp8u* src8u = ippiMalloc_8u_C1(roi.width, roi.height, &src8uStep);
if(0 == src8u)
return -1;
Ipp8u* buf = ippsMalloc_8u(bufSize);
if(0 == buf)
return -1;
status = ippiResizeSqrPixel_8u_C1R(pTmp, roi0, tmpStep, rect0, src8u,
src8uStep, dstRect, 1.0/factor,1.0/factor,
0.0, 0.0, IPPI_INTER_LANCZOS, buf);
if(ippStsNoErr != status)
return -1;
ippFree(buf);
---
If ippiResizeSqrPixel fails, buf is not freed.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Thomas,
thanks for catching this. That should be fixed in future.
Regards,
Vladimir
thanks for catching this. That should be fixed in future.
Regards,
Vladimir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Thomas,
This bug has been addressed in the 7.0.4 release that is expected later this spring.
Paul
This bug has been addressed in the 7.0.4 release that is expected later this spring.
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
IPP 7.0.4 is available now, which includes the fix for this problem.
Thanks,
Chao

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