- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am using Microsoft Visual Studio 2008. I put _IPP_PARALLEL_STATIC in my preprocessor definitions, and it seems to be linking the *_t libraries. Is that all I need? When I look at the dependency of my console app, I do not see the OpenMPdll asa dependency. Is that normal?
Here is my console app:
#include "stdafx.h"
#include
int _tmain(int argc, _TCHAR* argv[])
{
IppStatus status;
int widthIn = 1920;
int heightIn = 1080;
int widthOut = 720;
int heightOut = 480;
int interpolation = IPPI_INTER_CUBIC2P_BSPLINE;
const Ipp8u *pSrc = (Ipp8u*)ippMalloc( widthIn * heightIn );
IppiSize srcSize = { widthIn, heightIn };
Ipp8u *pDst = (Ipp8u*)ippMalloc( widthOut * heightOut );
IppiSize dstSize = { widthOut, heightOut };
IppiRect srcRoi = { 0, 0, widthIn, heightIn, };
IppiRect dstRoi = { 0, 0, widthOut, heightOut, };
int srcStep = widthIn;
int dstStep = widthOut;
const double xFactor = (double)widthOut / widthIn;
const double yFactor = (double)heightOut / heightIn;
int workBufferSize = 0;
status = ippiResizeGetBufSize( srcRoi, dstRoi, 1, interpolation, &workBufferSize );
ASSERT( ippStsNoErr == status );
Ipp8u *pWorkBuffer = (Ipp8u*)ippMalloc( workBufferSize );
ASSERT( pWorkBuffer != NULL );
for( int n=0; ; n++ )
{
status = ippiResizeSqrPixel_8u_C1R( pSrc, srcSize, srcStep, srcRoi, pDst, dstStep, dstRoi, xFactor, yFactor, 0, 0, interpolation, pWorkBuffer );
ASSERT( ippStsNoErr == status );
}
return 0;
}
Your help is appreciated.
Steve
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
did you check wether the functions you are using are threaded at all (esp. ippiResizeSqrPixel_xyz)?? See ThreadedFunctionsList.txt in the IPP-documentation.
BEst regards,
TJ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You are right, ippStaticInit() need to call. This function sets the most appropriate processor-specific static code of the Intel IPP software.
Thanks,
Naveen Gv
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page