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
链接已复制
