<?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のトピックVPU vpu_EncStartOneFrame error</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/VPU-vpu-EncStartOneFrame-error/m-p/451977#M70201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm a newbie with VPU enconding and I'm trying to encode a YUV422 buffer to MJPEG. I've read freescale documentation (VPU Application Programming Interface Linux Reference Manual) and I found some hints from &lt;A href="https://github.com/boundarydevices/imx-utils/blob/master/imx_mjpeg_encoder.cpp" title="https://github.com/boundarydevices/imx-utils/blob/master/imx_mjpeg_encoder.cpp"&gt;https://github.com/boundarydevices/imx-utils/blob/master/imx_mjpeg_encoder.cpp&lt;/A&gt;. Now, I'm trying it with a ov5640 mipi camera but my application fails calling &lt;STRONG&gt;vpu_EncStartOneFrame&lt;/STRONG&gt; with a "&lt;STRONG&gt;Floating point exception&lt;/STRONG&gt;" error. I don't know how to debug it, the fbuffer used in structure EncParam seems to be ok.&lt;/P&gt;&lt;P&gt;Could someone give me some help? What could spawn this error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for the attention,&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Sep 2015 08:33:52 GMT</pubDate>
    <dc:creator>adc1</dc:creator>
    <dc:date>2015-09-15T08:33:52Z</dc:date>
    <item>
      <title>VPU vpu_EncStartOneFrame error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/VPU-vpu-EncStartOneFrame-error/m-p/451977#M70201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm a newbie with VPU enconding and I'm trying to encode a YUV422 buffer to MJPEG. I've read freescale documentation (VPU Application Programming Interface Linux Reference Manual) and I found some hints from &lt;A href="https://github.com/boundarydevices/imx-utils/blob/master/imx_mjpeg_encoder.cpp" title="https://github.com/boundarydevices/imx-utils/blob/master/imx_mjpeg_encoder.cpp"&gt;https://github.com/boundarydevices/imx-utils/blob/master/imx_mjpeg_encoder.cpp&lt;/A&gt;. Now, I'm trying it with a ov5640 mipi camera but my application fails calling &lt;STRONG&gt;vpu_EncStartOneFrame&lt;/STRONG&gt; with a "&lt;STRONG&gt;Floating point exception&lt;/STRONG&gt;" error. I don't know how to debug it, the fbuffer used in structure EncParam seems to be ok.&lt;/P&gt;&lt;P&gt;Could someone give me some help? What could spawn this error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for the attention,&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 08:33:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/VPU-vpu-EncStartOneFrame-error/m-p/451977#M70201</guid>
      <dc:creator>adc1</dc:creator>
      <dc:date>2015-09-15T08:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: VPU vpu_EncStartOneFrame error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/VPU-vpu-EncStartOneFrame-error/m-p/451978#M70202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I reply by myself,&lt;/P&gt;&lt;P&gt;delving vpu source code, I found out that on structure &lt;STRONG&gt;EncMjpgParam&lt;/STRONG&gt; mjpg_hufTable and mjpg_qMatTable shouldn't be used on mx6 platform but in their place huffVal, huffBits, qMatTab and cInfoTab must be initialized. The "Floating point exception" error were caused by a division by zero with uninitialized qMatTab matrix elements in function JpgEncLoadQMatTab (vpu_util.c).&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2015 07:52:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/VPU-vpu-EncStartOneFrame-error/m-p/451978#M70202</guid>
      <dc:creator>adc1</dc:creator>
      <dc:date>2015-09-16T07:52:34Z</dc:date>
    </item>
  </channel>
</rss>

