<?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: H.264 decoder and image pitch in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-decoder-and-image-pitch/m-p/883560#M10461</link>
    <description>Further testing has been done with a 1-alignment value and the results are still correct.&lt;BR /&gt;Surprisingly, execution is about 3% &lt;B&gt;faster&lt;/B&gt; without 64-byte alignment!&lt;BR /&gt;</description>
    <pubDate>Mon, 26 May 2008 14:52:25 GMT</pubDate>
    <dc:creator>billaj</dc:creator>
    <dc:date>2008-05-26T14:52:25Z</dc:date>
    <item>
      <title>H.264 decoder and image pitch</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-decoder-and-image-pitch/m-p/883556#M10457</link>
      <description>Hello,&lt;BR /&gt;I am currently trying to integrate the UMC H.264 decoder into one of our products and I have noticed that the GetFrame method allocates as an output buffer a VideoData object whose buffer pitch is always a multiple of 64 bytes (I assume this is due to performance optimizations). This makes the integration more complicated as our interface expects a pitch equal to the actual width of the image.&lt;BR /&gt;&lt;BR /&gt;So my goal is to modify the H.264 decoder to make it return VideoData buffers without right padding. My question is : where should I look at for modifications? Basically, where are the actual calls to decoding functions and the buffer allocation done?&lt;BR /&gt;&lt;BR /&gt;edit : I use IPP 5.3&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Jean-Charles&lt;BR /&gt;</description>
      <pubDate>Fri, 23 May 2008 08:33:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-decoder-and-image-pitch/m-p/883556#M10457</guid>
      <dc:creator>billaj</dc:creator>
      <dc:date>2008-05-23T08:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: H.264 decoder and image pitch</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-decoder-and-image-pitch/m-p/883557#M10458</link>
      <description>&lt;P&gt;Jean-Charles,&lt;/P&gt;
&lt;P&gt;I am fairly experienced with IPP's codecs and modifying the code to suit my own requirements. After seeing your posts about the alignment and the 3:2 pulldown, I believe I can help you. You can contact me at jere AT dragonglobal DOT biz.&lt;/P&gt;
&lt;P&gt;Jere&lt;/P&gt;</description>
      <pubDate>Mon, 26 May 2008 04:53:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-decoder-and-image-pitch/m-p/883557#M10458</guid>
      <dc:creator>jere_jones</dc:creator>
      <dc:date>2008-05-26T04:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: H.264 decoder and image pitch</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-decoder-and-image-pitch/m-p/883558#M10459</link>
      <description>Jere, thanks for your proposal for help :) , but I'd rather keep it on the forum, it may be of some help for others...&lt;BR /&gt;&lt;BR /&gt;Meanwhile, I have found the instruction that does the alignment/padding : &lt;BR /&gt;&lt;BR /&gt;umc_h264_dec_defs_yuv.cpp, line 187 : &lt;BR /&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;nPitchLuma = align_value&lt;IPP32U&gt; (lumaSize.width + LUMA_PADDING * 2, DATA_ALIGN);&lt;/IPP32U&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Times New Roman"&gt;LUMA_PADDING is 0 and DATA_ALIGN is 64.&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Times New Roman"&gt;nPitchLuma is later affected to the m_pitch_luma of a H264DecoderFrame, which is used to initialize the pitch of the luma plane of the output VideoData.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Times New Roman"&gt;align_value is:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Times New Roman"&gt;&lt;FONT face="Courier New"&gt;template&lt;CLASS t=""&gt; inline&lt;BR /&gt;T align_value(size_t nValue, size_t lAlignValue = DEFAULT_ALIGN_VALUE)&lt;BR /&gt;{&lt;BR /&gt; return static_cast&lt;T&gt; ((nValue + (lAlignValue - 1)) &amp;amp;&lt;BR /&gt; ~(lAlignValue - 1));&lt;BR /&gt;}&lt;/T&gt;&lt;/CLASS&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Times New Roman"&gt;Well, simple enough, it rounds nValue to the nearest bigger multiple of lAlignValue (provided it is a power of two).&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;BR /&gt;The question I try now to get an answer to is : why is this alignment needed?&lt;BR /&gt;</description>
      <pubDate>Mon, 26 May 2008 09:36:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-decoder-and-image-pitch/m-p/883558#M10459</guid>
      <dc:creator>billaj</dc:creator>
      <dc:date>2008-05-26T09:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: H.264 decoder and image pitch</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-decoder-and-image-pitch/m-p/883559#M10460</link>
      <description>Okay, I replaced the alignment value with 1 and I get a non-right-padded VideoData as hoped. Everything seems OK! I haven't compared decoding performance vs. the previous, 64-byte aligned version yet...&lt;BR /&gt;</description>
      <pubDate>Mon, 26 May 2008 12:34:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-decoder-and-image-pitch/m-p/883559#M10460</guid>
      <dc:creator>billaj</dc:creator>
      <dc:date>2008-05-26T12:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: H.264 decoder and image pitch</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-decoder-and-image-pitch/m-p/883560#M10461</link>
      <description>Further testing has been done with a 1-alignment value and the results are still correct.&lt;BR /&gt;Surprisingly, execution is about 3% &lt;B&gt;faster&lt;/B&gt; without 64-byte alignment!&lt;BR /&gt;</description>
      <pubDate>Mon, 26 May 2008 14:52:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-decoder-and-image-pitch/m-p/883560#M10461</guid>
      <dc:creator>billaj</dc:creator>
      <dc:date>2008-05-26T14:52:25Z</dc:date>
    </item>
  </channel>
</rss>

