<?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: EGL/OpenGL ES - Rendering Frames to Program Memory in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/EGL-OpenGL-ES-Rendering-Frames-to-Program-Memory/m-p/528907#M84561</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Deactivated user​, are you able to help here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Jul 2016 19:23:30 GMT</pubDate>
    <dc:creator>CarlosCasillas</dc:creator>
    <dc:date>2016-07-01T19:23:30Z</dc:date>
    <item>
      <title>EGL/OpenGL ES - Rendering Frames to Program Memory</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/EGL-OpenGL-ES-Rendering-Frames-to-Program-Memory/m-p/528906#M84560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to render Open GL frames to client memory so I can use the pixel data in other APIs, and I need to do this very quickly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bottleneck for me is getting the pixel data from Open GL to program memory.&amp;nbsp; I've tried the following methods with success, but they are all too slow (about 70ms per frame):&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;glReadPixels&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;eglCopyBuffers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;eglLockSurfaceKHR()&lt;/SPAN&gt; followed by &lt;SPAN style="font-family: courier new,courier;"&gt;eglQuerySurface()&lt;/SPAN&gt; w/ &lt;SPAN style="font-family: courier new,courier;"&gt;EGL_BITMAP_POINTER_KHR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see there are other APIs like &lt;SPAN style="font-family: courier new,courier;"&gt;glTexDirectVIV&lt;/SPAN&gt; and EGL Images (as documented at &lt;A href="https://software.intel.com/en-us/articles/using-opengl-es-to-accelerate-apps-with-legacy-2d-guis" title="https://software.intel.com/en-us/articles/using-opengl-es-to-accelerate-apps-with-legacy-2d-guis"&gt;Using OpenGL ES to Accelerate Apps with Legacy 2D GUIs | Intel® Software&lt;/A&gt; ) but I haven't been able to get them to work because they all seem to be designed for pushing data from program memory to Open GL, but not from Open GL to program memory. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also tried using a Pixmap Surface, but that also seems to be one-way (e.g. program memory to OpenGL); I just get a black pixmap after drawing my scene.&amp;nbsp; I tried using &lt;SPAN style="font-family: courier new,courier;"&gt;glFlush()&lt;/SPAN&gt; and &lt;SPAN style="font-family: courier new,courier;"&gt;glFinish()&lt;/SPAN&gt; to ensure the OpenGL pipeline was finished, but that resulted in a program crash at the &lt;SPAN style="font-family: courier new,courier;"&gt;glFinish()&lt;/SPAN&gt; call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's the fastest way to render an OpenGL frame to program memory so it can be used in other APIs?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using Windows Embedded Compact 2013 on an iMX6DL board.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 07:17:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/EGL-OpenGL-ES-Rendering-Frames-to-Program-Memory/m-p/528906#M84560</guid>
      <dc:creator>jinshil</dc:creator>
      <dc:date>2016-07-01T07:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: EGL/OpenGL ES - Rendering Frames to Program Memory</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/EGL-OpenGL-ES-Rendering-Frames-to-Program-Memory/m-p/528907#M84561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Deactivated user​, are you able to help here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 19:23:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/EGL-OpenGL-ES-Rendering-Frames-to-Program-Memory/m-p/528907#M84561</guid>
      <dc:creator>CarlosCasillas</dc:creator>
      <dc:date>2016-07-01T19:23:30Z</dc:date>
    </item>
  </channel>
</rss>

