<?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>topic Re: when using peek on the memory.. in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/when-using-peek-on-the-memory/m-p/918385#M15378</link>
    <description>&lt;DIV&gt;Hi Menno,&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;according the IPP Reference Manual, Volume 2 Image and Video Processing, Chapter 3 Supporting Functions, Article Memory Allocation Functions, ippiMalloc allocates aligned memory block of different data types. So, in your case, for 8u_AC4 there will be pixel-interleaved array of 4 channels for Ipp8u data type in each. In case of 32s_AC4 there will be pixel-interleaved array of 4 channels for Ipp32 data type in each.&lt;/DIV&gt;
&lt;DIV&gt;For example, if you need allocate memory block for 4-channel image of Ipp8u data type with size 4x3 you shoul call&lt;/DIV&gt;
&lt;DIV&gt;ptr = ippiMalloc_8u_C4(4,3,&amp;amp;step);&lt;/DIV&gt;
&lt;DIV&gt;And memory pointed by ptr will be like this&lt;/DIV&gt;
&lt;DIV&gt;c0c1c2c3 c0c1c2c3 c0c1c2c3 c0c1c2c3 p p p p p p p p p p p p p p p p&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;c0c1c2c3 c0c1c2c3 c0c1c2c3 c0c1c2c3 p p p p p p p p p p p p p p p p&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;c0c1c2c3 c0c1c2c3 c0c1c2c3 c0c1c2c3 p p p p p p p p p p p p p p p p&lt;/DIV&gt;
&lt;DIV&gt;where c0, c1, c2, c3 is color channels and p is padding bytes to make 32 byte alignment&lt;/DIV&gt;
&lt;DIV&gt;Note, ippiMalloc does not assign any values into allocated memory, so memory is not inizialized.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Regards,&lt;/DIV&gt;
&lt;DIV&gt; Vladimir&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Sun, 23 Jan 2005 00:39:41 GMT</pubDate>
    <dc:creator>Vladimir_Dudnik</dc:creator>
    <dc:date>2005-01-23T00:39:41Z</dc:date>
    <item>
      <title>when using peek on the memory..</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/when-using-peek-on-the-memory/m-p/918384#M15377</link>
      <description>&lt;DIV&gt;when using peek on the memory stack (using clarion)&lt;/DIV&gt;
&lt;DIV&gt;then how does &lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color="#330000"&gt;* 8u_AC4 looks ?&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color="#330000"&gt;and&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color="#330000"&gt;* 32s_AC4&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color="#330000"&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color="#330000"&gt;like 8u_AC4&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color="#330000"&gt;is like for one pixel :&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color="#330000"&gt;(red) 00000000 (green) 00000000 (blue) 00000000 alpha (00000000)&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color="#330000"&gt;or not and is it..:&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;FONT color="#330000"&gt;(red) 00 (green) 00 (blue) 00 alpha (00)&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color="#330000"&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color="#330000"&gt;i need to know also to understand of how big the imalloc is..(and for swapping into the DC etc.)&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color="#330000"&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color="#330000"&gt;i use normal basic api's with prototyping in clarion for windows&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color="#330000"&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color="#330000"&gt;it 'works' for now, but i can't (yet) create etc. any picture or use it in combination with normal createcompatiblebitmap / setdibits etc.&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color="#330000"&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color="#330000"&gt;i hope deeply someone can explain me the bit logic behind it&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color="#330000"&gt;(and i understand so far, i do not need any planes)&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color="#330000"&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color="#330000"&gt;friendly greetings,&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color="#330000"&gt;Menno de Ruiter&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color="#330000"&gt;computerworlds.com&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color="#330000"&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color="#330000"&gt;&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 21 Jan 2005 06:12:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/when-using-peek-on-the-memory/m-p/918384#M15377</guid>
      <dc:creator>mh_de_ruiter</dc:creator>
      <dc:date>2005-01-21T06:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: when using peek on the memory..</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/when-using-peek-on-the-memory/m-p/918385#M15378</link>
      <description>&lt;DIV&gt;Hi Menno,&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;according the IPP Reference Manual, Volume 2 Image and Video Processing, Chapter 3 Supporting Functions, Article Memory Allocation Functions, ippiMalloc allocates aligned memory block of different data types. So, in your case, for 8u_AC4 there will be pixel-interleaved array of 4 channels for Ipp8u data type in each. In case of 32s_AC4 there will be pixel-interleaved array of 4 channels for Ipp32 data type in each.&lt;/DIV&gt;
&lt;DIV&gt;For example, if you need allocate memory block for 4-channel image of Ipp8u data type with size 4x3 you shoul call&lt;/DIV&gt;
&lt;DIV&gt;ptr = ippiMalloc_8u_C4(4,3,&amp;amp;step);&lt;/DIV&gt;
&lt;DIV&gt;And memory pointed by ptr will be like this&lt;/DIV&gt;
&lt;DIV&gt;c0c1c2c3 c0c1c2c3 c0c1c2c3 c0c1c2c3 p p p p p p p p p p p p p p p p&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;c0c1c2c3 c0c1c2c3 c0c1c2c3 c0c1c2c3 p p p p p p p p p p p p p p p p&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;c0c1c2c3 c0c1c2c3 c0c1c2c3 c0c1c2c3 p p p p p p p p p p p p p p p p&lt;/DIV&gt;
&lt;DIV&gt;where c0, c1, c2, c3 is color channels and p is padding bytes to make 32 byte alignment&lt;/DIV&gt;
&lt;DIV&gt;Note, ippiMalloc does not assign any values into allocated memory, so memory is not inizialized.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Regards,&lt;/DIV&gt;
&lt;DIV&gt; Vladimir&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 23 Jan 2005 00:39:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/when-using-peek-on-the-memory/m-p/918385#M15378</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2005-01-23T00:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: when using peek on the memory..</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/when-using-peek-on-the-memory/m-p/918386#M15379</link>
      <description>&lt;DIV&gt;Thanks Vdudnik..&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Now i understand. Especially that it does not initializes the memory.. because i did not found with peek into memory a nice block of zero's (usually yes although, but not always)&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;the alligning i do understand also i read a few times over the part in the manual. &lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;My problem is i think that the rest of the functions just don't work on the allocated memory. I get a GPF always whatever function i try upon the imalloc.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;would i need a lockbytes orso ?&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;the return of the imalloc is a pointer to the memory block which i use use in the other functions.. but it just doesn't work. I can't find out because why not.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Thanks,&lt;/DIV&gt;
&lt;DIV&gt;Menno&lt;/DIV&gt;</description>
      <pubDate>Mon, 24 Jan 2005 03:33:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/when-using-peek-on-the-memory/m-p/918386#M15379</guid>
      <dc:creator>mh_de_ruiter</dc:creator>
      <dc:date>2005-01-24T03:33:47Z</dc:date>
    </item>
  </channel>
</rss>

