<?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中的主题 Accessing texture data from the application side on Android</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Accessing-texture-data-from-the-application-side-on-Android/m-p/391426#M57072</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently I create a GraphicsBuffer object, create an EGLImage and bind that EGLImage to a texture and use it as a render target. After that, I can access the underlying graphics buffer data from the application. This works fine in every other device with different GPUs but not on a Huawei device with an Immersion.16 GPU. There's no error generated anywhere, but the buffer from the GraphicsBuffer object I created is just filled with zeroes only. The same problem is also mentioned in this thread too, without any workaround/solution: &lt;A href="https://community.nxp.com/thread/352757"&gt;Is Android direct texture supported on imx6q?  &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also found about glTexDirectVIV and glTexDirectVIVMap methods but apparently they only support writing to a texture buffer, not reading from it. Is there a known working way of accessing texture data on Vivante GPUs? Any help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Oct 2015 08:39:40 GMT</pubDate>
    <dc:creator>rgngl</dc:creator>
    <dc:date>2015-10-13T08:39:40Z</dc:date>
    <item>
      <title>Accessing texture data from the application side on Android</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Accessing-texture-data-from-the-application-side-on-Android/m-p/391426#M57072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently I create a GraphicsBuffer object, create an EGLImage and bind that EGLImage to a texture and use it as a render target. After that, I can access the underlying graphics buffer data from the application. This works fine in every other device with different GPUs but not on a Huawei device with an Immersion.16 GPU. There's no error generated anywhere, but the buffer from the GraphicsBuffer object I created is just filled with zeroes only. The same problem is also mentioned in this thread too, without any workaround/solution: &lt;A href="https://community.nxp.com/thread/352757"&gt;Is Android direct texture supported on imx6q?  &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also found about glTexDirectVIV and glTexDirectVIVMap methods but apparently they only support writing to a texture buffer, not reading from it. Is there a known working way of accessing texture data on Vivante GPUs? Any help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 08:39:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Accessing-texture-data-from-the-application-side-on-Android/m-p/391426#M57072</guid>
      <dc:creator>rgngl</dc:creator>
      <dc:date>2015-10-13T08:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing texture data from the application side on Android</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Accessing-texture-data-from-the-application-side-on-Android/m-p/391427#M57073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ustun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similar behaviours with proper solution and code are in &lt;A href="https://community.nxp.com/thread/313676"&gt;i.MX6: camera image processing with 16 bit per color channel (IPU-&amp;amp;gt;GPU-&amp;amp;gt;VPU) under Linux&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just from the top of my head I guess that If you like to get texture data after render to texture I recommend to use glReadPixels instead OpeGLES functions, once you had the buffer you can use glMapBudder to get the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 16:29:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Accessing-texture-data-from-the-application-side-on-Android/m-p/391427#M57073</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2015-10-19T16:29:36Z</dc:date>
    </item>
  </channel>
</rss>

