<?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: MPEG-2 Decoding Sample Memory Usage in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG-2-Decoding-Sample-Memory-Usage/m-p/995944#M22917</link>
    <description>&lt;DIV&gt;For those that are curios, the problem was in the bitstream routines. Apparently they try to map the &lt;STRONG&gt;ENTIRE&lt;/STRONG&gt; mpeg into memory at once.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Memory was being allocated as soon as the byte was needed (i.e. read).&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;A rewrite of those routines fixed it.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Jere&lt;/DIV&gt;</description>
    <pubDate>Mon, 14 Feb 2005 09:51:23 GMT</pubDate>
    <dc:creator>jere_jones1</dc:creator>
    <dc:date>2005-02-14T09:51:23Z</dc:date>
    <item>
      <title>MPEG-2 Decoding Sample Memory Usage</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG-2-Decoding-Sample-Memory-Usage/m-p/995943#M22916</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;&lt;PRE&gt;&lt;/PRE&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Hi all,&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;I compiled the MPEG-2 Decoding sample using MSVS.NET 2003 and IPP 4.1 on a Pentium-4M machine.It is really fast at the beginning but it uses a lot of memory. On my 512M system, the decoder's memory usage steadily climbs until it reaches 420-430M.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;I tracked the memory allocation to this macro:&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV style="BORDER-RIGHT: black 1px solid; PADDING-RIGHT: 10px; BORDER-TOP: black 1px solid; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; BORDER-LEFT: black 1px solid; PADDING-TOP: 10px; BORDER-BOTTOM: black 1px solid"&gt;&lt;SPAN class="text_smallest"&gt;Code:&lt;/SPAN&gt;&lt;PRE&gt;#define BSWAP(x)    
    (Ipp32u)(((x) &amp;lt;&amp;lt; 24) + (((x)&amp;amp;0xff00) &amp;lt;&amp;lt; 8) + 
     (((x) &amp;gt;&amp;gt; 8)&amp;amp;0xff00) + ((x) &amp;gt;&amp;gt; 24))&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Every 6th time that macro is called, the memory usage increases by 4k. Themacro is called via: &lt;/P&gt;
&lt;DIV style="BORDER-RIGHT: black 1px solid; PADDING-RIGHT: 10px; BORDER-TOP: black 1px solid; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; BORDER-LEFT: black 1px solid; PADDING-TOP: 10px; BORDER-BOTTOM: black 1px solid"&gt;&lt;SPAN class="text_smallest"&gt;Code:&lt;/SPAN&gt;&lt;PRE&gt;return BSWAP(*code);&lt;/PRE&gt;&lt;/DIV&gt;
&lt;P&gt;I have isolated the macro from the return and the allocation follows the macro.&lt;/P&gt;
&lt;P&gt;I don't understand why this allocates memory or how to fix it.&lt;/P&gt;
&lt;P&gt;I appreciate any help.&lt;/P&gt;
&lt;P&gt;Jere&lt;/P&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 08 Feb 2005 00:59:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG-2-Decoding-Sample-Memory-Usage/m-p/995943#M22916</guid>
      <dc:creator>jere_jones1</dc:creator>
      <dc:date>2005-02-08T00:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: MPEG-2 Decoding Sample Memory Usage</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG-2-Decoding-Sample-Memory-Usage/m-p/995944#M22917</link>
      <description>&lt;DIV&gt;For those that are curios, the problem was in the bitstream routines. Apparently they try to map the &lt;STRONG&gt;ENTIRE&lt;/STRONG&gt; mpeg into memory at once.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Memory was being allocated as soon as the byte was needed (i.e. read).&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;A rewrite of those routines fixed it.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Jere&lt;/DIV&gt;</description>
      <pubDate>Mon, 14 Feb 2005 09:51:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG-2-Decoding-Sample-Memory-Usage/m-p/995944#M22917</guid>
      <dc:creator>jere_jones1</dc:creator>
      <dc:date>2005-02-14T09:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: MPEG-2 Decoding Sample Memory Usage</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG-2-Decoding-Sample-Memory-Usage/m-p/995945#M22918</link>
      <description>&lt;DIV&gt;Hi Jere,&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;we are trying to keep sample code as simple as possible, it was the reason for using such approach. If you feel it is not appropriate you can submit this issue to premier.intel.com&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Regards,&lt;/DIV&gt;
&lt;DIV&gt; Vladimir&lt;/DIV&gt;</description>
      <pubDate>Thu, 17 Feb 2005 06:28:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG-2-Decoding-Sample-Memory-Usage/m-p/995945#M22918</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2005-02-17T06:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: MPEG-2 Decoding Sample Memory Usage</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG-2-Decoding-Sample-Memory-Usage/m-p/995946#M22919</link>
      <description>&lt;DIV&gt;It is an appropriate example of mpeg-2 decoding routines. It is not an appropriate example of a bitstream. But that's ok. It's not advertised as a bitstream example.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;I learned quite a bit fromthe sample(much more than I expected) and appreciate it.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;BTW, thanks for all your effort responding to all the questions!&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Jere&lt;/DIV&gt;</description>
      <pubDate>Thu, 17 Feb 2005 07:11:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG-2-Decoding-Sample-Memory-Usage/m-p/995946#M22919</guid>
      <dc:creator>jere_jones1</dc:creator>
      <dc:date>2005-02-17T07:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: MPEG-2 Decoding Sample Memory Usage</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG-2-Decoding-Sample-Memory-Usage/m-p/995947#M22920</link>
      <description>&lt;DIV&gt;Hi Jere,&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;yes, you are right, this particular sample can be better. Actually we are trying to keep continuously improve our samples, so I hope in the next versions it will became more clean.&lt;/DIV&gt;
&lt;DIV&gt;Thanks you for your interest to IPP.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Regards,&lt;/DIV&gt;
&lt;DIV&gt; Vladimir&lt;/DIV&gt;</description>
      <pubDate>Thu, 17 Feb 2005 07:17:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG-2-Decoding-Sample-Memory-Usage/m-p/995947#M22920</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2005-02-17T07:17:39Z</dc:date>
    </item>
  </channel>
</rss>

