<?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: How to Reinitialize DataReader, Splitter,and Decoder in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-to-Reinitialize-DataReader-Splitter-and-Decoder/m-p/914355#M14788</link>
    <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/441368"&gt;dzhou.tac&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;How to reinitialize dataReader, Splitter, and Decoder?&lt;BR /&gt;All these objects contain Init founction. But I found the Init() routine needs Params that is used to create these objects. I am looking for something just to rewind data pointer to the begining of the data file. &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;david.tac&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Hi david, &lt;BR /&gt;&lt;BR /&gt;as I understand, if you just need rewind data pointer to begining of the data file, then you don't need to reinitalize the splittter, decoder, dataReader, &lt;BR /&gt;&lt;BR /&gt;Just call reset(), whichshould besupposedfor such purpose,&lt;BR /&gt;for example,&lt;BR /&gt;&lt;BR /&gt;DataReader.Rese
&lt;P align="left"&gt;Description&lt;/P&gt;
&lt;P align="left"&gt;The method resets all internal parameters to start reading from the beginning. This method does not deallocate internal resources unlike the Close method.&lt;/P&gt;

&lt;P&gt;decoder.Reset();&lt;BR /&gt;&lt;BR /&gt;The method sets codec to initial state. You can apply Reset in the case of random access&lt;BR /&gt;or to process the same kind of data again without complete reinitialization of the codec.&lt;/P&gt;
&lt;P&gt;The splitter seems haven't reset() function, but splitter-&amp;gt;SetTimePosition(0) andsplitter-&amp;gt; GetNextData(UMC::MediaData* &lt;EM&gt;data&lt;/EM&gt;, Ipp32u &lt;EM&gt;nTrack&lt;/EM&gt;)may work. If not, you may reinitial it, for example,&lt;BR /&gt;if (reinitial)&lt;BR /&gt;{&lt;BR /&gt; Splitter-&amp;gt;Close();&lt;BR /&gt; delete mySplitter;&lt;BR /&gt;mySplitter = new UMC::H264Splitter();&lt;BR /&gt;&lt;BR /&gt; UMC::SplitterParams mSplParams;&lt;BR /&gt; mSplParams.m_pDataReader = mDataReader;&lt;BR /&gt; umcSts = mySplitter-&amp;gt;Init(mSplParams);&lt;BR /&gt; if(umcSts != UMC::UMC_OK)&lt;BR /&gt; {&lt;BR /&gt; delete mDataReader;&lt;BR /&gt; delete mySplitter;&lt;BR /&gt; }&lt;BR /&gt;}&lt;BR /&gt; umcSts = mVC1Splitter-&amp;gt;GetNextData(&amp;amp;mMediaData,0);&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ying&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jan 2010 08:28:00 GMT</pubDate>
    <dc:creator>Ying_H_Intel</dc:creator>
    <dc:date>2010-01-11T08:28:00Z</dc:date>
    <item>
      <title>How to Reinitialize DataReader, Splitter,and Decoder</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-to-Reinitialize-DataReader-Splitter-and-Decoder/m-p/914354#M14787</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;How to reinitialize dataReader, Splitter, and Decoder?&lt;BR /&gt;All these objects contain Init founction. But I found the Init() routine needs Params that is used to create these objects. I am looking for something just to rewind data pointer to the begining of the data file. &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;david.tac&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Jan 2010 19:16:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/How-to-Reinitialize-DataReader-Splitter-and-Decoder/m-p/914354#M14787</guid>
      <dc:creator>dzhou_tac</dc:creator>
      <dc:date>2010-01-06T19:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to Reinitialize DataReader, Splitter,and Decoder</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-to-Reinitialize-DataReader-Splitter-and-Decoder/m-p/914355#M14788</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/441368"&gt;dzhou.tac&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;How to reinitialize dataReader, Splitter, and Decoder?&lt;BR /&gt;All these objects contain Init founction. But I found the Init() routine needs Params that is used to create these objects. I am looking for something just to rewind data pointer to the begining of the data file. &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;david.tac&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Hi david, &lt;BR /&gt;&lt;BR /&gt;as I understand, if you just need rewind data pointer to begining of the data file, then you don't need to reinitalize the splittter, decoder, dataReader, &lt;BR /&gt;&lt;BR /&gt;Just call reset(), whichshould besupposedfor such purpose,&lt;BR /&gt;for example,&lt;BR /&gt;&lt;BR /&gt;DataReader.Rese
&lt;P align="left"&gt;Description&lt;/P&gt;
&lt;P align="left"&gt;The method resets all internal parameters to start reading from the beginning. This method does not deallocate internal resources unlike the Close method.&lt;/P&gt;

&lt;P&gt;decoder.Reset();&lt;BR /&gt;&lt;BR /&gt;The method sets codec to initial state. You can apply Reset in the case of random access&lt;BR /&gt;or to process the same kind of data again without complete reinitialization of the codec.&lt;/P&gt;
&lt;P&gt;The splitter seems haven't reset() function, but splitter-&amp;gt;SetTimePosition(0) andsplitter-&amp;gt; GetNextData(UMC::MediaData* &lt;EM&gt;data&lt;/EM&gt;, Ipp32u &lt;EM&gt;nTrack&lt;/EM&gt;)may work. If not, you may reinitial it, for example,&lt;BR /&gt;if (reinitial)&lt;BR /&gt;{&lt;BR /&gt; Splitter-&amp;gt;Close();&lt;BR /&gt; delete mySplitter;&lt;BR /&gt;mySplitter = new UMC::H264Splitter();&lt;BR /&gt;&lt;BR /&gt; UMC::SplitterParams mSplParams;&lt;BR /&gt; mSplParams.m_pDataReader = mDataReader;&lt;BR /&gt; umcSts = mySplitter-&amp;gt;Init(mSplParams);&lt;BR /&gt; if(umcSts != UMC::UMC_OK)&lt;BR /&gt; {&lt;BR /&gt; delete mDataReader;&lt;BR /&gt; delete mySplitter;&lt;BR /&gt; }&lt;BR /&gt;}&lt;BR /&gt; umcSts = mVC1Splitter-&amp;gt;GetNextData(&amp;amp;mMediaData,0);&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ying&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2010 08:28:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/How-to-Reinitialize-DataReader-Splitter-and-Decoder/m-p/914355#M14788</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2010-01-11T08:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to Reinitialize DataReader, Splitter,and Decoder</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-to-Reinitialize-DataReader-Splitter-and-Decoder/m-p/914356#M14789</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
Hi Ying H&lt;BR /&gt;&lt;BR /&gt;Thank you very much. I will try it later.&lt;BR /&gt;&lt;BR /&gt;david Zhou</description>
      <pubDate>Mon, 11 Jan 2010 20:24:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/How-to-Reinitialize-DataReader-Splitter-and-Decoder/m-p/914356#M14789</guid>
      <dc:creator>dzhou_tac</dc:creator>
      <dc:date>2010-01-11T20:24:32Z</dc:date>
    </item>
  </channel>
</rss>

