<?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: GUI on fb0 with video rectangle overlay on fb1 in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/GUI-on-fb0-with-video-rectangle-overlay-on-fb1/m-p/639413#M97492</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;I guess this is related and its fixed:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/440053"&gt;https://community.nxp.com/thread/440053&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Dec 2016 16:41:24 GMT</pubDate>
    <dc:creator>Bio_TICFSL</dc:creator>
    <dc:date>2016-12-09T16:41:24Z</dc:date>
    <item>
      <title>GUI on fb0 with video rectangle overlay on fb1</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GUI-on-fb0-with-video-rectangle-overlay-on-fb1/m-p/639412#M97491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm developing a simple application on a i.MX6Q based board connected to a 480x234 LVDS primary display (/dev/fb0 background and /dev/fb1 foreground). I'm working directly on framebuffer, no X11 or Wayland. I have these simple requirements:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;display a simple GUI on background&lt;/LI&gt;&lt;LI&gt;display a videostream on a rectangle (e.g. 200x160), not hiding the background&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I'm currently running official NXP&amp;nbsp;&lt;A href="http://www.nxp.com/webapp/Download?colCode=L4.1.15_1.2.0_LINUX_DOCS&amp;amp;Parent_nodeId=1337699481071706174845&amp;amp;Parent_pageType=product" rel="nofollow noopener noreferrer" style="color: #5e89c1; background-color: #ffffff; font-size: 16px;" target="_blank"&gt;Linux 4.1.15_1.2.0 BSP&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the GUI is running I launch the following gstreamer 1.0 pipeline:&lt;/P&gt;&lt;PRE&gt;gst-launch-1.0 rtspsrc location=rtsp://192.168.0.102/ch1/sub &amp;nbsp;! rtpjpegdepay ! vpudec ! overlaysink overlay-width=200 overlay-height=160 overlay-left=50&amp;nbsp;&lt;SPAN&gt;overlay-top=50&amp;nbsp;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;The problem is that when the pipeline goes in PLAY state, the overlay covers the background, with video drawn in the 200x160 rectangle area, and black outside the rectangle. In the past I was running a YOCTO Dora based BSP, kernel 3.0.35, gstreamer-0.10 with an analogous pipeline I had the effect was exactly what I wanted, without problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only way I've found to obtain the effect with the new BSP I want is drawing a 'green back' on the GUI and setting color key 0x00FF00 on /dev/fb1. Is there a simpler way to do that, i.e. simply 'not drawing' on overlay fb1 outside the video rectangle?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help will be appreciated. Thank you in advance!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2016 11:02:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GUI-on-fb0-with-video-rectangle-overlay-on-fb1/m-p/639412#M97491</guid>
      <dc:creator>federicovitali</dc:creator>
      <dc:date>2016-12-01T11:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: GUI on fb0 with video rectangle overlay on fb1</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GUI-on-fb0-with-video-rectangle-overlay-on-fb1/m-p/639413#M97492</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;I guess this is related and its fixed:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/440053"&gt;https://community.nxp.com/thread/440053&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2016 16:41:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GUI-on-fb0-with-video-rectangle-overlay-on-fb1/m-p/639413#M97492</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2016-12-09T16:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: GUI on fb0 with video rectangle overlay on fb1</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GUI-on-fb0-with-video-rectangle-overlay-on-fb1/m-p/639414#M97493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi and thanks for you answer. I'm already using those ioctls to achieve the result I'm looking for, but the problem is that I have use those system calls when the gstreamer pipeline goes in play state, and it's quite complicated. I think I have to take a closer look at imx-gst1.0-plugin and imx overlaysink. With gstreamer 0.10 the analogous sink was mfw_isink and I got the result I was looking for out of the box. Probably something changed in handling the blend of fb0 / fb1 when rendering the frames.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 08:14:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GUI-on-fb0-with-video-rectangle-overlay-on-fb1/m-p/639414#M97493</guid>
      <dc:creator>federicovitali</dc:creator>
      <dc:date>2016-12-15T08:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: GUI on fb0 with video rectangle overlay on fb1</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GUI-on-fb0-with-video-rectangle-overlay-on-fb1/m-p/639415#M97494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am facing the same problem and I don't know how to make overlaysink only output to /dev/fb1. There is no such "device" property in the overlaysink plugin. Could help me please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 10:12:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GUI-on-fb0-with-video-rectangle-overlay-on-fb1/m-p/639415#M97494</guid>
      <dc:creator>charlesyc</dc:creator>
      <dc:date>2018-03-14T10:12:37Z</dc:date>
    </item>
  </channel>
</rss>

