<?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中的主题 Creating a direct-mode graphical plug-in</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Creating-a-direct-mode-graphical-plug-in/m-p/193702#M10067</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to create a direct-mode graphical plug-in. My understanding (acquired from reading the &amp;nbsp;ifxui_plugin.c example) is that I set my plug-in's mode in the 'CreateElement' call to my plug-in, like so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pProperty-&amp;gt;mode = IFX_MODE_ELEMENT_BUFFERED;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The defined values for mode are:&lt;/P&gt;&lt;P&gt;IFX_MODE_ELEMENT_INVALID&lt;/P&gt;&lt;P&gt;IFX_MODE_ELEMENT_OPENGL_TEXTURE&lt;/P&gt;&lt;P&gt;IFX_MODE_ELEMENT_BUFFERED_AND_DIRECT&lt;/P&gt;&lt;P&gt;IFX_MODE_ELEMENT_BUFFERED&lt;/P&gt;&lt;P&gt;IFX_MODE_ELEMENT_BUFFERED_NORMAL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I indicate that I just want DIRECT mode? I tried specifying mode&amp;nbsp;IFX_MODE_ELEMENT_BUFFERED_AND_DIRECT, hoping that I'd get a 'ChangeElementMode' call from the engine telling me which mode I was actually in but I never seem to get that call. In fact, after I get the 'CreateElement' call, I don't get any other calls until DestroyElement. The documentation seems to say that I should also be getting ChangeElementMode, PositionElement, and ActivateElement calls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me understand what I'm doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Dec 2011 19:32:14 GMT</pubDate>
    <dc:creator>jhollister</dc:creator>
    <dc:date>2011-12-08T19:32:14Z</dc:date>
    <item>
      <title>Creating a direct-mode graphical plug-in</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Creating-a-direct-mode-graphical-plug-in/m-p/193702#M10067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to create a direct-mode graphical plug-in. My understanding (acquired from reading the &amp;nbsp;ifxui_plugin.c example) is that I set my plug-in's mode in the 'CreateElement' call to my plug-in, like so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pProperty-&amp;gt;mode = IFX_MODE_ELEMENT_BUFFERED;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The defined values for mode are:&lt;/P&gt;&lt;P&gt;IFX_MODE_ELEMENT_INVALID&lt;/P&gt;&lt;P&gt;IFX_MODE_ELEMENT_OPENGL_TEXTURE&lt;/P&gt;&lt;P&gt;IFX_MODE_ELEMENT_BUFFERED_AND_DIRECT&lt;/P&gt;&lt;P&gt;IFX_MODE_ELEMENT_BUFFERED&lt;/P&gt;&lt;P&gt;IFX_MODE_ELEMENT_BUFFERED_NORMAL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I indicate that I just want DIRECT mode? I tried specifying mode&amp;nbsp;IFX_MODE_ELEMENT_BUFFERED_AND_DIRECT, hoping that I'd get a 'ChangeElementMode' call from the engine telling me which mode I was actually in but I never seem to get that call. In fact, after I get the 'CreateElement' call, I don't get any other calls until DestroyElement. The documentation seems to say that I should also be getting ChangeElementMode, PositionElement, and ActivateElement calls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me understand what I'm doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2011 19:32:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Creating-a-direct-mode-graphical-plug-in/m-p/193702#M10067</guid>
      <dc:creator>jhollister</dc:creator>
      <dc:date>2011-12-08T19:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a direct-mode graphical plug-in</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Creating-a-direct-mode-graphical-plug-in/m-p/193703#M10068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can't define in direct mode only, however you can run in it. The purpose of having the dual property is to enable the plugin to be animated if you wish, when doing so it switches to buffered mode. If you don't animated the element in any way it continues to be of direct mode type (if the alternate mode wasn't available during animation the element would disappear).&lt;/P&gt;&lt;P&gt;Please note that this type of plugin is only useable in non-accelerated render mode, so if you are using the OpenGL/ES Runtime you can't use a direct mode plugin element. (there is no advantage in this mode so it is not supported, you are better off using OPENGL_TEXTURE or BUFFERED mode).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using the non-accelerated runtime then regarding your lack of function calls I think there must be a problem in the element definition. Please check that in UI Express the plugin has a position and importantly an extent in the layout being used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Phil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2011 14:02:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Creating-a-direct-mode-graphical-plug-in/m-p/193703#M10068</guid>
      <dc:creator>PhilBrumby</dc:creator>
      <dc:date>2011-12-09T14:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a direct-mode graphical plug-in</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Creating-a-direct-mode-graphical-plug-in/m-p/193704#M10069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Phil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help. I'm try your suggestions and post my results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2011 14:58:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Creating-a-direct-mode-graphical-plug-in/m-p/193704#M10069</guid>
      <dc:creator>jhollister</dc:creator>
      <dc:date>2011-12-09T14:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a direct-mode graphical plug-in</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Creating-a-direct-mode-graphical-plug-in/m-p/193705#M10070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd like to use the OpenGL/ES Runtime so that I can take advantage of the acceleration hardware in the iMX535, so now I'm running my plugin in&amp;nbsp;OPENGL_TEXTURE mode. I'm getting the CreateElement and DestroyElement calls, but still don't get ActivateElement. I can get functional link calls to my plugin between CreateElement and DestroyElement.&lt;/P&gt;&lt;P&gt;The purpose of this plugin is to play video (full screen or partial screen) using the GStreamer framework. I was trying to use DIRECT mode so that the Inflexion runtime would stop rendering to my LCD display in the region where GStreamer is going to render. Is this possible in OPENGL_TEXTURE mode? What's the correct way of coordinating Inflexion and an external video source when using OpenGL/ES and the accelerated runtime?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2011 10:37:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Creating-a-direct-mode-graphical-plug-in/m-p/193705#M10070</guid>
      <dc:creator>jhollister</dc:creator>
      <dc:date>2011-12-12T10:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a direct-mode graphical plug-in</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Creating-a-direct-mode-graphical-plug-in/m-p/193706#M10071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I forgot to mention that, at your suggestion, I checked my plugin element and it does have a fully-specified extent and location, but I still don't get PositionElement or ActivateElement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2011 12:57:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Creating-a-direct-mode-graphical-plug-in/m-p/193706#M10071</guid>
      <dc:creator>jhollister</dc:creator>
      <dc:date>2011-12-12T12:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a direct-mode graphical plug-in</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Creating-a-direct-mode-graphical-plug-in/m-p/193707#M10072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;Can you confirm that if you set up a preview graphic to be displayed (like with the graph sample workshop) you see this in the UI Express tool when running the theme in the previewer? (alternatively you should get a red square if you don't set up a preview graphic). If not then we still have a configuration problem at the theme level.&lt;/P&gt;&lt;P&gt;Historically we have found that rendering video via standard product features is too much for the hardware as we cannot access the multimedia pipeline content in an efficient way via plugins (see your other thread on this topic).&lt;/P&gt;&lt;P&gt;My only only advice is to potentially render your video to a separate hardware layer and use a simple plugin element to form a link between the UI, module software and your separate layer which will play the video. Not something we have an example of implementing however sorry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Phil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 12:06:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Creating-a-direct-mode-graphical-plug-in/m-p/193707#M10072</guid>
      <dc:creator>PhilBrumby</dc:creator>
      <dc:date>2011-12-15T12:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a direct-mode graphical plug-in</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Creating-a-direct-mode-graphical-plug-in/m-p/193708#M10073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have confirmed that a preview graphic is displayed for my plugin in UI Express, if I provide one. If I don't provide one the red image appears instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We will move forward with the plan to render the Inflexion UI to one hardware layer and the video to another.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 13:17:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Creating-a-direct-mode-graphical-plug-in/m-p/193708#M10073</guid>
      <dc:creator>jhollister</dc:creator>
      <dc:date>2011-12-15T13:17:49Z</dc:date>
    </item>
  </channel>
</rss>

