<?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: glTexDirectVIVMap() need example application in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/glTexDirectVIVMap-need-example-application/m-p/331072#M44714</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I went through the doc i.MX_6_EGL-OGL_Extension_Support.pdf. and above post. But not getting what is going wrong in my case? Some time it gives segmatation fault and sometime glTexDirectVIVMap() fails with error 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried to align as follows but glTexDirectVIVMap() fails but gl error code is 0.&lt;/P&gt;&lt;P&gt;buffers[i].start = (GLuint)(buffers[i].start + 8) &amp;amp; (~7);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vikash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Jan 2015 13:32:38 GMT</pubDate>
    <dc:creator>vikaspatil</dc:creator>
    <dc:date>2015-01-29T13:32:38Z</dc:date>
    <item>
      <title>glTexDirectVIVMap() need example application</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/glTexDirectVIVMap-need-example-application/m-p/331070#M44712</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;Could anyone point me to some sample application which uses the glTexDirectVIVMap()? I am trying to use it for camera capture and display application using V4L2 capture/X11/GLES2.0 APIs but it is not working. While I could manage to make it work with glTexDirectVIV() but it also required to do memcpy() which eventually increases the CPU load. So I think I can avoid the CPU load by using glTexDirectVIVMap() but not sure why it is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the code I am trying to use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unsigned int physical = ~0U;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;buffers[i].length = buf.length;&lt;/P&gt;&lt;P&gt;buffers[i].offset = buf.m.offset;&lt;/P&gt;&lt;P&gt;buffers[i].start = mmap (NULL ,buf.length, PROT_READ | PROT_WRITE, MAP_SHARED, *fd, buf.m.offset);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(*pFNglTexDirectVIVMap)(GL_TEXTURE_2D, width, height, GL_VIV_YUY2, (GLvoid**) &amp;amp;buffers[buf.index].start, &amp;amp;physical);&lt;/P&gt;&lt;P&gt;(*pFNglTexDirectInvalidateVIV)(GL_TEXTURE_2D);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I doing anything wrong or missing something here? Does glTexDirectVIVMap()works with mmaped memory?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 09:51:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/glTexDirectVIVMap-need-example-application/m-p/331070#M44712</guid>
      <dc:creator>vikaspatil</dc:creator>
      <dc:date>2015-01-29T09:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: glTexDirectVIVMap() need example application</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/glTexDirectVIVMap-need-example-application/m-p/331071#M44713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vikash&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please look below examples&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/309784"&gt;i.MX6: async behavior of glTexDirectVIVMap&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/304653"&gt;glTexDirectVIV documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 13:14:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/glTexDirectVIVMap-need-example-application/m-p/331071#M44713</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2015-01-29T13:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: glTexDirectVIVMap() need example application</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/glTexDirectVIVMap-need-example-application/m-p/331072#M44714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I went through the doc i.MX_6_EGL-OGL_Extension_Support.pdf. and above post. But not getting what is going wrong in my case? Some time it gives segmatation fault and sometime glTexDirectVIVMap() fails with error 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried to align as follows but glTexDirectVIVMap() fails but gl error code is 0.&lt;/P&gt;&lt;P&gt;buffers[i].start = (GLuint)(buffers[i].start + 8) &amp;amp; (~7);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vikash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 13:32:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/glTexDirectVIVMap-need-example-application/m-p/331072#M44714</guid>
      <dc:creator>vikaspatil</dc:creator>
      <dc:date>2015-01-29T13:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: glTexDirectVIVMap() need example application</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/glTexDirectVIVMap-need-example-application/m-p/331073#M44715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone confirms if I can use the memory pointer returned by mmap() and pass it to glTexDirectVIVMap() as I shown in my original post? This doesn't seem to be working for me. I am getting GL_INVALID_OPERATION (0x502) error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or How can I achieve "i.MX6 zero copy camera capture and dsiplay" using X11/GLES2/V4L2?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vikash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 06:44:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/glTexDirectVIVMap-need-example-application/m-p/331073#M44715</guid>
      <dc:creator>vikaspatil</dc:creator>
      <dc:date>2015-02-13T06:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: glTexDirectVIVMap() need example application</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/glTexDirectVIVMap-need-example-application/m-p/331074#M44716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vikash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you ever figure this out? Do you have any simple example application of using V4L2 buffers iwth glTexDirectVIVMap()?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2018 18:31:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/glTexDirectVIVMap-need-example-application/m-p/331074#M44716</guid>
      <dc:creator>philbot999</dc:creator>
      <dc:date>2018-03-20T18:31:48Z</dc:date>
    </item>
  </channel>
</rss>

