<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Thema "Hi, Davy!" in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Error-when-using-ippiWarpBilinearQuad/m-p/1136084#M25945</link>
    <description>&lt;P&gt;Hi, Davy!&lt;/P&gt;&lt;P&gt;Thank you for the reproducer, we will check it on our side and keep this thread updated.&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Ivan Galanin.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Nov 2019 07:24:00 GMT</pubDate>
    <dc:creator>Ivan_G_Intel1</dc:creator>
    <dc:date>2019-11-11T07:24:00Z</dc:date>
    <item>
      <title>Error when using ippiWarpBilinearQuad</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Error-when-using-ippiWarpBilinearQuad/m-p/1136082#M25943</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using the function ippiWarpBilinearQuad_32f_C1R to warp a 32f image. Then I encounter the error:&lt;/P&gt;&lt;P&gt;Exception thrown at 0x00000000038746EB (ippiu8-5.2.dll) in IPPTest.exe: 0xC0000005: Access violation reading location 0x00000F9C12FC584C.&lt;/P&gt;&lt;P&gt;Below is my codes.&lt;/P&gt;
&lt;PRE class="brush:cpp; class-name:dark; wrap-lines:false;"&gt;	IMG_RBUF
		rbBufSrc = { 0 },
		rbBufDst = { 0 };
	IppiSize
		srcSize = { 0 };
	IppiRect
		srcRoi = { 0 },
		dstRoi = { 0 };
	double
		srcQuad[4][2] = {
			{ 221.777777777777, 0.0 },
			{ 332.666666666666, 0.0 },
			{ 332.666666666666, 110.888888888888 },
			{ 221.777777777777, 110.888888888888 } },
		dstQuad[4][2] = {
			{ 222.277404785156, 0.500198245048522 },
			{ 333.166290283203, 0.500114262104034 },
			{ 333.166381835937, 111.388999938964 },
			{ 222.27749633789, 111.389083862304 } },
			coeffs[2][4] = { 0 };
	int
		interpolation = IPPI_INTER_LINEAR;
	IppStatus
		ippSts = ippStsNoErr;
	IMG_COORD
		coZ = { 0 };
	char
		acSrcName[] = "E:\\temp\\Src.r.tif",
		acDstName[] = "E:\\temp\\Dst.r.tif";
	
	// rbBufSrc with size 999x999
	// rbBufDst with size 1000x1000
	if (OK != FILE_ImageSize((IMG_UBYTE*)acSrcName, &amp;amp;rbBufSrc.size) ||
		OK != FILE_ImageSize((IMG_UBYTE*)acDstName, &amp;amp;rbBufDst.size))
		goto EXIT;
	rbBufSrc.linestep = rbBufSrc.size.x;
	rbBufDst.linestep = rbBufDst.size.x;
	if (NULL == (rbBufSrc.ptr = (IMG_REAL*)malloc(sizeof(IMG_REAL)*rbBufSrc.size.x*rbBufSrc.size.y)) ||
		NULL == (rbBufDst.ptr = (IMG_REAL*)malloc(sizeof(IMG_REAL)*rbBufDst.size.x*rbBufDst.size.y)))
		goto EXIT;

	if (OK != FILE_LoadImageTiff_r(
		acSrcName, &amp;amp;coZ, &amp;amp;rbBufSrc.size, &amp;amp;rbBufSrc) ||
		OK != FILE_LoadImageTiff_r(
			acDstName, &amp;amp;coZ, &amp;amp;rbBufDst.size, &amp;amp;rbBufDst))
		goto EXIT;

	srcSize.width = rbBufSrc.size.x;
	srcSize.height = rbBufSrc.size.y;
	srcRoi.x = 221;
	srcRoi.y = 0;
	srcRoi.width = 113;
	srcRoi.height = 112;
	dstRoi.x = dstRoi.y = 0;
	dstRoi.width = dstRoi.height = 1000;

	ippSts = ippiWarpBilinearQuad_32f_C1R(
		rbBufSrc.ptr, srcSize, rbBufSrc.linestep * sizeof(IMG_REAL), srcRoi, srcQuad,
		rbBufDst.ptr, rbBufDst.linestep * sizeof(IMG_REAL), dstRoi, dstQuad,
		interpolation);
	if (ippStsNoErr != ippSts)
		goto EXIT;&lt;/PRE&gt;

&lt;P&gt;The last 32bit of the address being accessed when the error occurs is always a certain offset from the address of the buffer pointer&lt;BR /&gt;Address violation at 0x00000F9C12FC584C&lt;BR /&gt;rbBufSrc.ptr 0x0000000012fd0070&lt;BR /&gt;rbBufDst.ptr 0x00000000133a0070&lt;/P&gt;
&lt;P&gt;There is no such error when I change the coordinate of the destination quad from 222.277496337&lt;STRONG&gt;89&lt;/STRONG&gt; to 222.277496337&lt;STRONG&gt;90&lt;/STRONG&gt;. It seems strange that such small change will affect the address of the memory being accessed.&lt;/P&gt;
&lt;P&gt;The IPP version that I am using is 5.2 but I encounter the same problem when I use IPP 2019.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 03:36:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Error-when-using-ippiWarpBilinearQuad/m-p/1136082#M25943</guid>
      <dc:creator>Chan__Davy</dc:creator>
      <dc:date>2019-11-07T03:36:58Z</dc:date>
    </item>
    <item>
      <title>Hi Chan, Davy, </title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Error-when-using-ippiWarpBilinearQuad/m-p/1136083#M25944</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Chan, Davy,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your question. For better investigating the issue, would you mind attach your whole sample code and image files? Then we can reproduce it locally.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 06:33:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Error-when-using-ippiWarpBilinearQuad/m-p/1136083#M25944</guid>
      <dc:creator>Ruqiu_C_Intel</dc:creator>
      <dc:date>2019-11-11T06:33:04Z</dc:date>
    </item>
    <item>
      <title>Hi, Davy!</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Error-when-using-ippiWarpBilinearQuad/m-p/1136084#M25945</link>
      <description>&lt;P&gt;Hi, Davy!&lt;/P&gt;&lt;P&gt;Thank you for the reproducer, we will check it on our side and keep this thread updated.&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Ivan Galanin.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 07:24:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Error-when-using-ippiWarpBilinearQuad/m-p/1136084#M25945</guid>
      <dc:creator>Ivan_G_Intel1</dc:creator>
      <dc:date>2019-11-11T07:24:00Z</dc:date>
    </item>
    <item>
      <title>Hi Ruqiu,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Error-when-using-ippiWarpBilinearQuad/m-p/1136085#M25946</link>
      <description>&lt;P&gt;Hi Ruqiu,&lt;/P&gt;&lt;P&gt;Attached please find the source code and the image files. The function I use to load the images is from a&amp;nbsp;bulky&amp;nbsp;library in my company. You will need to replace with your function.&lt;/P&gt;&lt;P&gt;And I found a related post which seems to be the same problem.&lt;BR /&gt;&lt;A href="https://software.intel.com/en-us/forums/intel-integrated-performance-primitives/topic/813820#comment-1947757" target="_blank"&gt;https://software.intel.com/en-us/forums/intel-integrated-performance-primitives/topic/813820#comment-1947757&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Davy&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 07:51:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Error-when-using-ippiWarpBilinearQuad/m-p/1136085#M25946</guid>
      <dc:creator>Chan__Davy</dc:creator>
      <dc:date>2019-11-11T07:51:22Z</dc:date>
    </item>
    <item>
      <title>Dear Ivan,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Error-when-using-ippiWarpBilinearQuad/m-p/1136086#M25947</link>
      <description>&lt;P&gt;Dear Ivan,&lt;/P&gt;&lt;P&gt;I forgot I modified the codes. I revert the change to reproduce the problem. Attached please find the codes. Thanks.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Davy&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 07:55:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Error-when-using-ippiWarpBilinearQuad/m-p/1136086#M25947</guid>
      <dc:creator>Chan__Davy</dc:creator>
      <dc:date>2019-11-11T07:55:27Z</dc:date>
    </item>
    <item>
      <title>I still don't see how to</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Error-when-using-ippiWarpBilinearQuad/m-p/1136087#M25948</link>
      <description>&lt;P&gt;I still don't see how to build your example as it doesn't contain all needed header files (&amp;nbsp;e.x - //#include &amp;lt;DSP_GEN.H&amp;gt;,&amp;nbsp;//#include &amp;lt;FILE_MGT.H&amp;gt; ), therefore we may see a lot of underfined errors.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Dec 2019 13:25:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Error-when-using-ippiWarpBilinearQuad/m-p/1136087#M25948</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2019-12-01T13:25:29Z</dc:date>
    </item>
  </channel>
</rss>

