<?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のトピックImx8 : vpu init issue</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Imx8-vpu-init-issue/m-p/796535#M123255</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I want to use VPU to decode h.264&amp;nbsp; stream in my application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Imx8mqevk and linux version is 4.9.51. Backend is wayland.&lt;/P&gt;&lt;P&gt;I tested unit_test in BSP and it works well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I find example code at ~~/imx-yocto-bsp\build-wayland\tmp\work\imx8mqevk-poky-linux\imx-vpu-hantro\1.6.0-r0\imx-vpu-hantro-1.6.0\decoder_sw\software\test\h264high&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I copied the code from 532 line to 1057 and delete testbench code and command setup. When I run my test app, it can not open decoder. H264DecInit() returns -1. It means the parameter was wrong. My test parameter was like below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;H264DecInit(&amp;amp;dec_inst,&lt;BR /&gt;#ifdef USE_EXTERNAL_BUFFER&lt;BR /&gt; dwl_inst,&amp;nbsp;&lt;BR /&gt;#endif&lt;BR /&gt;0,&lt;BR /&gt; 0,&lt;BR /&gt; 0, 0, 0, 0, 0,&lt;BR /&gt; &amp;amp;dscale_cfg );&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;h264decapi.c&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;H264DecRet H264DecInit(H264DecInst * dec_inst,&lt;BR /&gt;#ifdef USE_EXTERNAL_BUFFER&lt;BR /&gt; const void *dwl,&lt;BR /&gt;#endif&lt;BR /&gt; u32 no_output_reordering,&lt;BR /&gt; enum DecErrorHandling error_handling,&lt;BR /&gt; u32 use_display_smoothing,&lt;BR /&gt; enum DecDpbFlags dpb_flags,&lt;BR /&gt; u32 use_adaptive_buffers,&lt;BR /&gt; u32 n_guard_size,&lt;BR /&gt; u32 use_secure_mode,&lt;BR /&gt; struct DecDownscaleCfg *dscale_cfg)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new in embedded. I can not search much document about this. I hope anybody help me. Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#IMX8 #hantro #decoder_sw&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jul 2018 09:34:44 GMT</pubDate>
    <dc:creator>wooyeoljun</dc:creator>
    <dc:date>2018-07-30T09:34:44Z</dc:date>
    <item>
      <title>Imx8 : vpu init issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Imx8-vpu-init-issue/m-p/796535#M123255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I want to use VPU to decode h.264&amp;nbsp; stream in my application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Imx8mqevk and linux version is 4.9.51. Backend is wayland.&lt;/P&gt;&lt;P&gt;I tested unit_test in BSP and it works well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I find example code at ~~/imx-yocto-bsp\build-wayland\tmp\work\imx8mqevk-poky-linux\imx-vpu-hantro\1.6.0-r0\imx-vpu-hantro-1.6.0\decoder_sw\software\test\h264high&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I copied the code from 532 line to 1057 and delete testbench code and command setup. When I run my test app, it can not open decoder. H264DecInit() returns -1. It means the parameter was wrong. My test parameter was like below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;H264DecInit(&amp;amp;dec_inst,&lt;BR /&gt;#ifdef USE_EXTERNAL_BUFFER&lt;BR /&gt; dwl_inst,&amp;nbsp;&lt;BR /&gt;#endif&lt;BR /&gt;0,&lt;BR /&gt; 0,&lt;BR /&gt; 0, 0, 0, 0, 0,&lt;BR /&gt; &amp;amp;dscale_cfg );&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;h264decapi.c&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;H264DecRet H264DecInit(H264DecInst * dec_inst,&lt;BR /&gt;#ifdef USE_EXTERNAL_BUFFER&lt;BR /&gt; const void *dwl,&lt;BR /&gt;#endif&lt;BR /&gt; u32 no_output_reordering,&lt;BR /&gt; enum DecErrorHandling error_handling,&lt;BR /&gt; u32 use_display_smoothing,&lt;BR /&gt; enum DecDpbFlags dpb_flags,&lt;BR /&gt; u32 use_adaptive_buffers,&lt;BR /&gt; u32 n_guard_size,&lt;BR /&gt; u32 use_secure_mode,&lt;BR /&gt; struct DecDownscaleCfg *dscale_cfg)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new in embedded. I can not search much document about this. I hope anybody help me. Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#IMX8 #hantro #decoder_sw&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2018 09:34:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Imx8-vpu-init-issue/m-p/796535#M123255</guid>
      <dc:creator>wooyeoljun</dc:creator>
      <dc:date>2018-07-30T09:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Imx8 : vpu init issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Imx8-vpu-init-issue/m-p/796536#M123256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please refer to the Section 6.6 "Video Processing Unit (VPU)" of the attached document. Also, what exactly unit_test flow did you use? Please specify in more details.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Artur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2018 11:23:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Imx8-vpu-init-issue/m-p/796536#M123256</guid>
      <dc:creator>art</dc:creator>
      <dc:date>2018-07-31T11:23:56Z</dc:date>
    </item>
  </channel>
</rss>

