<?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: glTexDirectVIVMap leads GL_INVALID_ENUM</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/glTexDirectVIVMap-leads-GL-INVALID-ENUM-if-malloc-is-used/m-p/826051#M127033</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Val,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is difficult to provide a response about the such error with the complete code, do you think you can provide the init function and the headers that you add, and maybe an screen shot of such error.&amp;nbsp; what version of BSP are you using?, which device are you handling?&lt;/P&gt;&lt;DIV class=""&gt;&lt;P&gt;You can check attached document&amp;nbsp;Chapter GPU Memory Introduction for more GPU memory usage.&lt;/P&gt;&lt;P&gt;In theory there is no maximum limitation for GPU memory, but you need leave enough system memory for other apps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Aug 2018 15:15:39 GMT</pubDate>
    <dc:creator>Bio_TICFSL</dc:creator>
    <dc:date>2018-08-28T15:15:39Z</dc:date>
    <item>
      <title>glTexDirectVIVMap leads GL_INVALID_ENUM if malloc is used</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/glTexDirectVIVMap-leads-GL-INVALID-ENUM-if-malloc-is-used/m-p/826050#M127032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, could somebody explain why&amp;nbsp;glTexDirectVIVMap &lt;STRONG&gt;always&lt;/STRONG&gt; leads GL_INVALID_ENUM error in following case?&lt;/P&gt;&lt;P&gt;Tried different formats, sizes, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;GLuint physical = ~0U;&lt;/P&gt;&lt;P&gt;void *bits = malloc(vF.width() * vF.height());&lt;/P&gt;&lt;P&gt;glBindTexture(GL_TEXTURE_2D, tmpTexId);&lt;/P&gt;&lt;P&gt;glTexDirectVIVMap(GL_TEXTURE_2D,vF.width(),vF.height(), GL_VIV_YV12, (GLvoid **)&amp;amp;bits, &amp;amp;physical); ASSERT(glGetError() != GL_INVALID_ENUM);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Originally the problem with GL_INVALID_ENUM happened when tried to play &lt;STRONG&gt;video/x-theora&lt;/STRONG&gt; video using following pipeline:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filesrc ! oggdemux !&amp;nbsp; theoradec&amp;nbsp; !&amp;nbsp;&amp;nbsp;qtvideorenderersink&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where&amp;nbsp;&lt;SPAN&gt;qtvideorenderersink&lt;/SPAN&gt;&amp;nbsp;takes GstBuffer, maps it using gst_video_frame_map, takes data and use&amp;nbsp;glTexDirectVIVMap to map data to texture.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This&amp;nbsp;pipeline produces&amp;nbsp;&lt;SPAN&gt;GL_INVALID_ENUM and no video playback.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In case if format is&amp;nbsp;&lt;STRONG&gt;video/x-h264,&amp;nbsp;&lt;/STRONG&gt;&amp;nbsp; following pipeline is used:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;filesrc ! qtdemux ! h264parse ! imxvpudec !&amp;nbsp;&lt;SPAN&gt;qtvideorenderersink&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Everything works, video is successfully played.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;So if I change&amp;nbsp;original x-theora pipeline to:&lt;/P&gt;&lt;P&gt;filesrc ! oggdemux ! theoradec ! &lt;STRONG&gt;imxipuvideotransform&lt;/STRONG&gt; !&amp;nbsp;&lt;SPAN&gt;qtvideorenderersink&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;glTexDirectVIVMap works correctly without any error and video/x-theora content is shown.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So adding&amp;nbsp;&lt;SPAN&gt;imxipuvideotransform makes some magic.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Does it work because it uses&amp;nbsp;imxipuallocator ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Or&amp;nbsp;&lt;SPAN&gt;glTexDirectVIVMap&amp;nbsp;does not allow to use CPU (not configured?) memory at all on some&amp;nbsp;circumstances ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;imx6 nitrogen board on yocto.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2018 13:05:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/glTexDirectVIVMap-leads-GL-INVALID-ENUM-if-malloc-is-used/m-p/826050#M127032</guid>
      <dc:creator>valkov</dc:creator>
      <dc:date>2018-08-24T13:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: glTexDirectVIVMap leads GL_INVALID_ENUM</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/glTexDirectVIVMap-leads-GL-INVALID-ENUM-if-malloc-is-used/m-p/826051#M127033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Val,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is difficult to provide a response about the such error with the complete code, do you think you can provide the init function and the headers that you add, and maybe an screen shot of such error.&amp;nbsp; what version of BSP are you using?, which device are you handling?&lt;/P&gt;&lt;DIV class=""&gt;&lt;P&gt;You can check attached document&amp;nbsp;Chapter GPU Memory Introduction for more GPU memory usage.&lt;/P&gt;&lt;P&gt;In theory there is no maximum limitation for GPU memory, but you need leave enough system memory for other apps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2018 15:15:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/glTexDirectVIVMap-leads-GL-INVALID-ENUM-if-malloc-is-used/m-p/826051#M127033</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2018-08-28T15:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: glTexDirectVIVMap leads GL_INVALID_ENUM if malloc is used</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/glTexDirectVIVMap-leads-GL-INVALID-ENUM-if-malloc-is-used/m-p/826052#M127034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks for reply.&lt;BR /&gt;Updated the post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And en sample with malloc and glTexDirectVIVMap I took from&amp;nbsp;&lt;A _jive_internal="true" data-content-finding="Community" href="https://community.nxp.com/servlet/JiveServlet/download/1050857-1-432068/i.MX_Graphics_User's_Guide.pdf" style="color: #3d9ce7; background-color: #efefef; border: 0px; font-weight: 600; text-decoration: underline; font-size: 12px;"&gt;i.MX_Graphics_User's_Guide.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2018 08:36:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/glTexDirectVIVMap-leads-GL-INVALID-ENUM-if-malloc-is-used/m-p/826052#M127034</guid>
      <dc:creator>valkov</dc:creator>
      <dc:date>2018-08-30T08:36:09Z</dc:date>
    </item>
  </channel>
</rss>

