<?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: Escape from decoder hang of VPU API (or prescan usage) in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Escape-from-decoder-hang-of-VPU-API-or-prescan-usage/m-p/423709#M64008</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was surprising prescanresult was no longer usable. Let me ask 2 more questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Q1) Is there any status flag which represent 'not enough data' to decode next frame?&lt;/P&gt;&lt;P&gt;We want to detect suspending interrupt caused by unexpected errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Q2) We implemented original detect code as following. Do you think our code is effective?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our code concepts:&lt;BR /&gt;- If timeout occured after certain period passed from previous decode finished,&lt;BR /&gt;assumed data shortage then force filled next video data to the buffer.&lt;/P&gt;&lt;P&gt;- In case of above filling continuously happend more than 30 times without IRQ,&lt;BR /&gt;escape from the decode process.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jun 2015 11:34:32 GMT</pubDate>
    <dc:creator>torus1000</dc:creator>
    <dc:date>2015-06-29T11:34:32Z</dc:date>
    <item>
      <title>Escape from decoder hang of VPU API (or prescan usage)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Escape-from-decoder-hang-of-VPU-API-or-prescan-usage/m-p/423705#M64004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I'm getting stack at VPU decoder hang then I read VPU API manual;&lt;BR /&gt;&amp;nbsp; i.MX_6_VPU_Application_Programming_Interface_Linux_Reference_Manual.pdf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have following 2 questions. Can anybody help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;Page85 : 4.4.3 Other Issues&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;To avoid the VPU hanging if there is not enough stream data, enable prescan&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;in networking mode to first scan the stream buffer.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;This flag can be disabled if the bitstream buffer is large in real video&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;playback and the application can guarantee the bitstream buffer is enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Q1)&amp;nbsp; Could you figure out which step should I add prescanResult flag checker?&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.4.2.1 Decode Stream to Display on LCD on p83&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.3.1.1 Decoder Operation Flow on p41, Figure 4. Decoder Operation Flow on p43&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;Page 81 4.3.4 Escape from Decoder Hang&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;In the middle of picture decoding, decoder hanging is signaled to&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;the application through the decoder buffer empty interrupt if this interrupt is enabled&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Q2) Regard to decoder buffer empty interrupt, when and how did it enable during decoding?&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (see 3.3.1.1 Decoder Operation Flow on p41, Figure 4. Decoder Operation Flow on p43)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 10:37:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Escape-from-decoder-hang-of-VPU-API-or-prescan-usage/m-p/423705#M64004</guid>
      <dc:creator>torus1000</dc:creator>
      <dc:date>2015-05-12T10:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Escape from decoder hang of VPU API (or prescan usage)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Escape-from-decoder-hang-of-VPU-API-or-prescan-usage/m-p/423706#M64005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;refer to the manual, prescanEnable and prescanMode don't use for mx6&lt;/P&gt;&lt;P&gt;If the application cannot ensure to feed enough data for the stream, the application can use the forced escape option using&lt;/P&gt;&lt;P&gt;vpu_DecSetEscSeqInit().&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 09:37:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Escape-from-decoder-hang-of-VPU-API-or-prescan-usage/m-p/423706#M64005</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2015-05-27T09:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Escape from decoder hang of VPU API (or prescan usage)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Escape-from-decoder-hang-of-VPU-API-or-prescan-usage/m-p/423707#M64006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Guanqiong,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for reply.&lt;/P&gt;&lt;P&gt;Yes, you are right. I heard prescan replaced to rollback for i.MX6.&lt;/P&gt;&lt;P&gt;But actually I used i.MX53. Is there any sample code to use prescan?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2015 01:40:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Escape-from-decoder-hang-of-VPU-API-or-prescan-usage/m-p/423707#M64006</guid>
      <dc:creator>torus1000</dc:creator>
      <dc:date>2015-06-08T01:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Escape from decoder hang of VPU API (or prescan usage)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Escape-from-decoder-hang-of-VPU-API-or-prescan-usage/m-p/423708#M64007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you use mx53, pls refer to the mx53 vpu api file, I attached it, but let me remind,&lt;/P&gt;&lt;P&gt;For the VC-1 decoder, pre-scan mode is not supported. Do not use prescan mode for MPEG4 decoding or&lt;/P&gt;&lt;P&gt;in file-play mode.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 09:35:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Escape-from-decoder-hang-of-VPU-API-or-prescan-usage/m-p/423708#M64007</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2015-06-25T09:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Escape from decoder hang of VPU API (or prescan usage)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Escape-from-decoder-hang-of-VPU-API-or-prescan-usage/m-p/423709#M64008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was surprising prescanresult was no longer usable. Let me ask 2 more questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Q1) Is there any status flag which represent 'not enough data' to decode next frame?&lt;/P&gt;&lt;P&gt;We want to detect suspending interrupt caused by unexpected errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Q2) We implemented original detect code as following. Do you think our code is effective?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our code concepts:&lt;BR /&gt;- If timeout occured after certain period passed from previous decode finished,&lt;BR /&gt;assumed data shortage then force filled next video data to the buffer.&lt;/P&gt;&lt;P&gt;- In case of above filling continuously happend more than 30 times without IRQ,&lt;BR /&gt;escape from the decode process.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 11:34:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Escape-from-decoder-hang-of-VPU-API-or-prescan-usage/m-p/423709#M64008</guid>
      <dc:creator>torus1000</dc:creator>
      <dc:date>2015-06-29T11:34:32Z</dc:date>
    </item>
  </channel>
</rss>

