<?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>i.MX ProcessorsのトピックRe: vpu_DecGetInitialInfo function cause decoder and system to hang.</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/vpu-DecGetInitialInfo-function-cause-decoder-and-system-to-hang/m-p/321213#M42835</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course I have used the &lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vpu_DecSetEscSeqInit(handle, 1);&lt;/EM&gt; and &lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vpu_DecSetEscSeqInit(handle, 0); &lt;/EM&gt;like this. But the app still hanged after calling "&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ret = vpu_DecGetInitialInfo(handle, &amp;amp;initinfo);&lt;/EM&gt;", I doubt whether there is something wrong with the VPU decoder.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Aug 2014 07:10:28 GMT</pubDate>
    <dc:creator>MichaelLin</dc:creator>
    <dc:date>2014-08-01T07:10:28Z</dc:date>
    <item>
      <title>vpu_DecGetInitialInfo function cause decoder and system to hang.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/vpu-DecGetInitialInfo-function-cause-decoder-and-system-to-hang/m-p/321211#M42833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have met a strange problem when I tried to decode a H.264 bitstream using i.MX51 VPU. My OS is WinCE 6.0, BSP is V1004 and VPU lib is V3.9. I traced the decode operation and found that vpu_DecGetInitialInfo function cause decoder and OS to hang.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Open a decoder instance using vpu_DecOpen()&lt;/P&gt;&lt;P&gt;2. To provide the proper amount of bitstream, get the bitstream buffer address using &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;vpu_DecGetBitstreamBuffer()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3. After transferring the decoder input stream, inform the amount of bits transferred into the bitstream buffer using vpu_DecUpdateBitstreamBuffer()&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;4. Before starting a picture decoder operation, get the crucial parameters for decoder operations such as picture size, frame rate, required frame buffer size using vpu_DecGetInitialInfo()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;5. Using the returned frame buffer requirement, allocate the proper size of the frame buffers and convey this data to the i.MX51 VPU using vpu_DecRegisterFrameBuffer()&lt;/P&gt;&lt;P&gt;6. Start a picture decoder operation picture-by-picture using vpu_DecStartOneFrame()&lt;/P&gt;&lt;P&gt;7. Wait for the completion of the picture decoder operation interrupt event&lt;/P&gt;&lt;P&gt;8. Check the results of the decoder operation using vpu_DecGetOutputInfo()&lt;/P&gt;&lt;P&gt;9. After displaying nth frame buffer, clear the buffer display flag using vpu_DecClrDispFlag()&lt;/P&gt;&lt;P&gt;10. If there is more bitstream to decode, go to Step 6, otherwise e go to the next step&lt;/P&gt;&lt;P&gt;11. Terminate the sequence operation by closing the instance using vpu_DecClose()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the bitstream is so critical that stream error or lack of available stream may exist which cause decoder to hang.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody tell me how to avoid decoder hanging after calling &lt;SPAN style="color: #ff0000;"&gt;vpu_DecGetInitialInfo&lt;/SPAN&gt; function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 03:00:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/vpu-DecGetInitialInfo-function-cause-decoder-and-system-to-hang/m-p/321211#M42833</guid>
      <dc:creator>MichaelLin</dc:creator>
      <dc:date>2014-06-19T03:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: vpu_DecGetInitialInfo function cause decoder and system to hang.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/vpu-DecGetInitialInfo-function-cause-decoder-and-system-to-hang/m-p/321212#M42834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Have you tried this:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vpu_DecSetEscSeqInit(handle, 1);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ret = vpu_DecGetInitialInfo(handle, &amp;amp;initinfo);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vpu_DecSetEscSeqInit(handle, 0);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;According to "i.MX 6Dual/6Quad VPU Application Programming Interface Linux Reference Manual",&lt;/P&gt;&lt;P&gt;This function is useful to avoid VPU hanging because of crucial errors in the header syntax.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2014 10:47:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/vpu-DecGetInitialInfo-function-cause-decoder-and-system-to-hang/m-p/321212#M42834</guid>
      <dc:creator>zhangzhaolong</dc:creator>
      <dc:date>2014-07-14T10:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: vpu_DecGetInitialInfo function cause decoder and system to hang.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/vpu-DecGetInitialInfo-function-cause-decoder-and-system-to-hang/m-p/321213#M42835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course I have used the &lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vpu_DecSetEscSeqInit(handle, 1);&lt;/EM&gt; and &lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vpu_DecSetEscSeqInit(handle, 0); &lt;/EM&gt;like this. But the app still hanged after calling "&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ret = vpu_DecGetInitialInfo(handle, &amp;amp;initinfo);&lt;/EM&gt;", I doubt whether there is something wrong with the VPU decoder.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2014 07:10:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/vpu-DecGetInitialInfo-function-cause-decoder-and-system-to-hang/m-p/321213#M42835</guid>
      <dc:creator>MichaelLin</dc:creator>
      <dc:date>2014-08-01T07:10:28Z</dc:date>
    </item>
  </channel>
</rss>

