<?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 Hi Sathish S. in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/what-is-ARR-HDR-SIZE-in-IPP-samples/m-p/1022283#M19764</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://software.intel.com/en-us/user/1116010" style="font-size: 11px; line-height: 16.5px;"&gt;Sathish S.&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;It seems a IPP issue and here is IPP forum :&amp;nbsp;https://software.intel.com/en-us/forums/intel-integrated-performance-primitives, you may submit the issue there in the future.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-weight: 700; font-size: 12px; line-height: 18px;"&gt;The ARR_HDR_SIZE&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;= 32 &amp;nbsp;is &amp;nbsp;for 32-byte alignment. &amp;nbsp; almost same as&lt;/SPAN&gt;&lt;SPAN style="color: rgb(96, 96, 96); font-size: 11px; line-height: 16.5px; background-color: rgb(238, 238, 238);"&gt;&amp;nbsp;the function ippiMalloc&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;The function ippiMalloc is declared in the ippi.h file. This function allocates a memory block aligned to a&lt;BR /&gt;
	32-byte boundary for elements of different data types. Every line of the image is aligned in accordance with the&lt;BR /&gt;
	pStepBytes parameter, which is calculated by the ippiMalloc function and returned for further use.&lt;/P&gt;

&lt;P&gt;And&amp;nbsp;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;&amp;nbsp;It is &amp;nbsp;for better performance, for example,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: rgb(96, 96, 96); font-size: 11px; line-height: 16.5px; background-color: rgb(238, 238, 238);"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&lt;A href="https://software.intel.com/en-us/node/503946.&amp;nbsp;" target="_blank"&gt;https://software.intel.com/en-us/node/503946.&amp;nbsp;&lt;/A&gt;;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&lt;/P&gt;</description>
    <pubDate>Thu, 26 Feb 2015 02:07:25 GMT</pubDate>
    <dc:creator>Ying_H_Intel</dc:creator>
    <dc:date>2015-02-26T02:07:25Z</dc:date>
    <item>
      <title>what is ARR_HDR_SIZE in IPP samples</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/what-is-ARR-HDR-SIZE-in-IPP-samples/m-p/1022282#M19763</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;

&lt;P&gt;I am implementing the JPEG encoding and everything looks fine. But, I want to know the&amp;nbsp;ARR_HDR_SIZE &amp;nbsp;in uic samples&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;#include &amp;lt;stdlib.h&amp;gt;&lt;BR /&gt;
	#include &amp;lt;etxt.h&amp;gt;&lt;BR /&gt;
	#include "uic_new.h"&lt;/P&gt;

&lt;P&gt;using namespace UIC;&lt;/P&gt;

&lt;P&gt;static const unsigned int &lt;STRONG&gt;ARR_HDR_SIZE &lt;/STRONG&gt;= 32;&lt;/P&gt;

&lt;P&gt;void* UIC::ArrAlloc &amp;nbsp; (Ipp32u itemSize, Ipp32u nOfItems)&lt;BR /&gt;
	{&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; void *buff = malloc(itemSize * nOfItems + ARR_HDR_SIZE);&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; unsigned int *countOf = (unsigned int*)buff;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; *countOf = nOfItems;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; return ((Etxt_DText)buff) + ARR_HDR_SIZE;&lt;BR /&gt;
	}&lt;/P&gt;

&lt;P&gt;void &amp;nbsp;UIC::ArrFree &amp;nbsp; &amp;nbsp;(const void* arr)&lt;BR /&gt;
	{&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; Etxt_DText tmp = (Etxt_DText) arr;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; tmp -= ARR_HDR_SIZE;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; free(tmp);&lt;BR /&gt;
	}&lt;/P&gt;

&lt;P&gt;Ipp32u UIC::ArrCountOf(const void* arr)&lt;BR /&gt;
	{&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; Etxt_DText tmp = (Etxt_DText) arr;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; tmp -= ARR_HDR_SIZE;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; return *((unsigned int *)tmp );&lt;BR /&gt;
	}&lt;/P&gt;

&lt;P&gt;in the above code what is the&amp;nbsp;&lt;SPAN style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;ARR_HDR_SIZE &amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;and what it represents?.&lt;/P&gt;

&lt;P&gt;could you anyone help me.&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;sathish&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2015 05:30:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/what-is-ARR-HDR-SIZE-in-IPP-samples/m-p/1022282#M19763</guid>
      <dc:creator>Sathish_S_</dc:creator>
      <dc:date>2015-02-25T05:30:57Z</dc:date>
    </item>
    <item>
      <title>Hi Sathish S.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/what-is-ARR-HDR-SIZE-in-IPP-samples/m-p/1022283#M19764</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://software.intel.com/en-us/user/1116010" style="font-size: 11px; line-height: 16.5px;"&gt;Sathish S.&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;It seems a IPP issue and here is IPP forum :&amp;nbsp;https://software.intel.com/en-us/forums/intel-integrated-performance-primitives, you may submit the issue there in the future.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-weight: 700; font-size: 12px; line-height: 18px;"&gt;The ARR_HDR_SIZE&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;= 32 &amp;nbsp;is &amp;nbsp;for 32-byte alignment. &amp;nbsp; almost same as&lt;/SPAN&gt;&lt;SPAN style="color: rgb(96, 96, 96); font-size: 11px; line-height: 16.5px; background-color: rgb(238, 238, 238);"&gt;&amp;nbsp;the function ippiMalloc&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;The function ippiMalloc is declared in the ippi.h file. This function allocates a memory block aligned to a&lt;BR /&gt;
	32-byte boundary for elements of different data types. Every line of the image is aligned in accordance with the&lt;BR /&gt;
	pStepBytes parameter, which is calculated by the ippiMalloc function and returned for further use.&lt;/P&gt;

&lt;P&gt;And&amp;nbsp;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;&amp;nbsp;It is &amp;nbsp;for better performance, for example,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: rgb(96, 96, 96); font-size: 11px; line-height: 16.5px; background-color: rgb(238, 238, 238);"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&lt;A href="https://software.intel.com/en-us/node/503946.&amp;nbsp;" target="_blank"&gt;https://software.intel.com/en-us/node/503946.&amp;nbsp;&lt;/A&gt;;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&lt;/P&gt;</description>
      <pubDate>Thu, 26 Feb 2015 02:07:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/what-is-ARR-HDR-SIZE-in-IPP-samples/m-p/1022283#M19764</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2015-02-26T02:07:25Z</dc:date>
    </item>
  </channel>
</rss>

