<?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: IMX6. Start of Qt5 application causes flicker and tearing of camera preview on background framebuffer in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-Start-of-Qt5-application-causes-flicker-and-tearing-of/m-p/794569#M123048</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;please&amp;nbsp; how do you output qt above video?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 13 Jul 2019 02:40:12 GMT</pubDate>
    <dc:creator>yyuan</dc:creator>
    <dc:date>2019-07-13T02:40:12Z</dc:date>
    <item>
      <title>IMX6. Start of Qt5 application causes flicker and tearing of camera preview on background framebuffer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-Start-of-Qt5-application-causes-flicker-and-tearing-of/m-p/794564#M123043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I use Freescale sabresd board with imx6q. My goal is to run camera preview as early as possible, so I modifyed mxc_v4l2_capture driver to start overlay task right after&amp;nbsp;load and find camera. After that, when kernel completly loaded, I start GUI - qt5 application on fb0 (camera preview already running on fb1). I use eglfs plugin. The problem is that fb1 begins tearing when qt application starts. Can I force qt to use vsync of fb1? Or there are any other solution?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And another problem: fb0 have short one-time flicker when qt app starts (but fb0 set to fully transparent by default and it should not appear on top of fb1 until global alpha is disabled, right? I turn on local alpha blending on Component.onCompleted() signal of QML window). How can I start GUI more smoothy?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is a way to not flicker on GUI start, I can simply stop overlay task and run camera preview by gstreamer itself or qml from user space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached video of my device booting. First appears camera preview on fb1 -&amp;nbsp;no tearing, then one-time flicker, fb1 begin tearing, then appears test qml scene - background should be transparent, but it black in first&amp;nbsp;time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2018 11:04:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-Start-of-Qt5-application-causes-flicker-and-tearing-of/m-p/794564#M123043</guid>
      <dc:creator>maximkuk</dc:creator>
      <dc:date>2018-06-19T11:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6. Start of Qt5 application breaks vsync of camera preview on background framebuffer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-Start-of-Qt5-application-causes-flicker-and-tearing-of/m-p/794565#M123044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tearing of camera preview&amp;nbsp;begins after any framebuffer configuration, not Qt application itself. To avoid it, we can add MXCFB_WAIT_FOR_VSYNC ioctl before ipu_queue_task() in function&amp;nbsp;csi_buf_work_func() in ipu_fg_overlay_sdc.c, but it redueces framerate. May be I can add MXCFB_WAIT_FOR_VSYNC in other place, somewear in framebuffer configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But how can I avoid flicker on GUI start?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2018 07:17:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-Start-of-Qt5-application-causes-flicker-and-tearing-of/m-p/794565#M123044</guid>
      <dc:creator>maximkuk</dc:creator>
      <dc:date>2018-06-26T07:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6. Start of Qt5 application causes flicker and tearing of camera preview on background framebuffer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-Start-of-Qt5-application-causes-flicker-and-tearing-of/m-p/794566#M123045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maxim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what bsp used in the case, please try official Demo Images on link&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/support/developer-resources/software-development-tools/i.mx-developer-resources/i.mx-software-and-development-tool:IMX_SW" title="https://www.nxp.com/support/developer-resources/software-development-tools/i.mx-developer-resources/i.mx-software-and-development-tool:IMX_SW"&gt;i.MX Software|NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2018 23:36:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-Start-of-Qt5-application-causes-flicker-and-tearing-of/m-p/794566#M123045</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-06-26T23:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6. Start of Qt5 application causes flicker and tearing of camera preview on background framebuffer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-Start-of-Qt5-application-causes-flicker-and-tearing-of/m-p/794567#M123046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello! Thank you for reply!&lt;/P&gt;&lt;P&gt;I use yocto BSP from&amp;nbsp;&lt;A href="http://git.freescale.com/git/cgit.cgi/imx/fsl-arm-yocto-bsp.git/" style="color: black; background-color: #ffffff; font-size: 13.3333px;" title="fsl-arm-yocto-bsp.git"&gt;fsl-arm-yocto-bsp.git&lt;/A&gt;, linux kernel 4.9.11.&lt;/P&gt;&lt;P&gt;I will try Demo Images and report the result.&lt;/P&gt;&lt;P&gt;May this issuses be caused by incorrect fb or display configuration? My display is SVGA050 800x600 and I add its configurations to device tree and mxc_lcdif driver:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mxc_lcdif.c:&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;/* 800x600 @ 60 Hz , pixel clk @ 24MHz */&lt;BR /&gt;"SVGA050", 60, 800, 600, 41666, 1, 7, 10, 10, 60, 2,&lt;BR /&gt;0,&lt;BR /&gt;FB_VMODE_NONINTERLACED,&lt;BR /&gt;0,}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;device-tree:&lt;/P&gt;&lt;P&gt;&amp;amp;mxcfb1 {&lt;BR /&gt;&amp;nbsp;disp_dev = "lcd";&lt;BR /&gt;&amp;nbsp;interface_pix_fmt = "RGB24";&lt;BR /&gt;&amp;nbsp;default_bpp = &amp;lt;32&amp;gt;;&lt;BR /&gt;&amp;nbsp;mode_str ="SVGA050";&lt;BR /&gt;&amp;nbsp;late_init = &amp;lt;0&amp;gt;;&lt;BR /&gt; status = "okay";&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;lcd@0 {&lt;BR /&gt; compatible = "fsl,lcd";&lt;BR /&gt; ipu_id = &amp;lt;0&amp;gt;;&lt;BR /&gt; disp_id = &amp;lt;0&amp;gt;;&lt;BR /&gt; default_ifmt = "RGB24";&lt;BR /&gt; pinctrl-names = "default";&lt;BR /&gt; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_ipu1&amp;gt;;&lt;BR /&gt; status = "okay";&lt;BR /&gt; };&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2018 14:10:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-Start-of-Qt5-application-causes-flicker-and-tearing-of/m-p/794567#M123046</guid>
      <dc:creator>maximkuk</dc:creator>
      <dc:date>2018-06-27T14:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6. Start of Qt5 application causes flicker and tearing of camera preview on background framebuffer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-Start-of-Qt5-application-causes-flicker-and-tearing-of/m-p/794568#M123047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello! I have run test image from youre link (kernel 4.9.11, imx6q-sabresd.dtb,&amp;nbsp;qt5-validation-imx-fb rootsf) with hdmi to not corrapt it by my configurations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I start&amp;nbsp;Qt5_CinematicExperience it fills screen black, and after short time app screen appears. in console it prints:&amp;nbsp;libpng warning: "iCCP: known incorrect sRGB profile"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I start my test Qt application it fills screen black&lt;SPAN&gt;, and after short time app screen appears. No errors in console.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;environment variables&amp;nbsp;QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT set to real screen size,&amp;nbsp;QT_QPA_EGLFS_FB=/dev/fb2,&amp;nbsp;FB_MULTI_BUFFER=2 (setting FB_MULTI_BUFFER to greater values not changing situation, if set it to 1 screen will freeze on first frame)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;framebuffer settins:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;root@imx6qpdlsolox:~# fbset -fb /dev/fb2 &lt;BR /&gt; &lt;BR /&gt;mode "1920x1080-60" &lt;BR /&gt; # D: 148.500 MHz, H: 67.500 kHz, V: 60.000 Hz &lt;BR /&gt; geometry 1920 1080 1920 4320 16 &lt;BR /&gt; timings 6734 148 88 36 4 44 5 &lt;BR /&gt; hsync high &lt;BR /&gt; vsync high &lt;BR /&gt; rgba 5/11,6/5,5/0,0/0 &lt;BR /&gt;endmode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How to not filling screen black before QML scene will be shown?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2018 07:29:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-Start-of-Qt5-application-causes-flicker-and-tearing-of/m-p/794568#M123047</guid>
      <dc:creator>maximkuk</dc:creator>
      <dc:date>2018-06-28T07:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6. Start of Qt5 application causes flicker and tearing of camera preview on background framebuffer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-Start-of-Qt5-application-causes-flicker-and-tearing-of/m-p/794569#M123048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;please&amp;nbsp; how do you output qt above video?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jul 2019 02:40:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-Start-of-Qt5-application-causes-flicker-and-tearing-of/m-p/794569#M123048</guid>
      <dc:creator>yyuan</dc:creator>
      <dc:date>2019-07-13T02:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6. Start of Qt5 application causes flicker and tearing of camera preview on background framebuffer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-Start-of-Qt5-application-causes-flicker-and-tearing-of/m-p/794570#M123049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I draw qt to fb0 with local alpha turned-on and&amp;nbsp;show video on fb1 by gstreamer or v4l2 video overlay.&lt;/P&gt;&lt;P&gt;Or you may configure QtMultimedia and use QCamera in qt scene.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2019 10:12:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-Start-of-Qt5-application-causes-flicker-and-tearing-of/m-p/794570#M123049</guid>
      <dc:creator>maximkuk</dc:creator>
      <dc:date>2019-07-17T10:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6. Start of Qt5 application causes flicker and tearing of camera preview on background framebuffer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-Start-of-Qt5-application-causes-flicker-and-tearing-of/m-p/794571#M123050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i will try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2019 12:59:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-Start-of-Qt5-application-causes-flicker-and-tearing-of/m-p/794571#M123050</guid>
      <dc:creator>yyuan</dc:creator>
      <dc:date>2019-07-17T12:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6. Start of Qt5 application causes flicker and tearing of camera preview on background framebuffer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-Start-of-Qt5-application-causes-flicker-and-tearing-of/m-p/794572#M123051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if do like you say,&amp;nbsp; &amp;nbsp;i want to know how to store fused qt&amp;nbsp; &amp;nbsp;and&amp;nbsp; video together,&amp;nbsp; &amp;nbsp;So whether the combined qt and video can not be saved?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you know ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you very much again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2019 01:12:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-Start-of-Qt5-application-causes-flicker-and-tearing-of/m-p/794572#M123051</guid>
      <dc:creator>yyuan</dc:creator>
      <dc:date>2019-07-18T01:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6. Start of Qt5 application causes flicker and tearing of camera preview on background framebuffer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-Start-of-Qt5-application-causes-flicker-and-tearing-of/m-p/794573#M123052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can draw qt to some buffer and combine it with video by gstreamer. Or show video by qt and grab content of framebuffer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2019 09:47:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-Start-of-Qt5-application-causes-flicker-and-tearing-of/m-p/794573#M123052</guid>
      <dc:creator>maximkuk</dc:creator>
      <dc:date>2019-07-18T09:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6. Start of Qt5 application causes flicker and tearing of camera preview on background framebuffer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-Start-of-Qt5-application-causes-flicker-and-tearing-of/m-p/794574#M123053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;I don't quite understand, i must thank it over.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2019 00:53:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-Start-of-Qt5-application-causes-flicker-and-tearing-of/m-p/794574#M123053</guid>
      <dc:creator>yyuan</dc:creator>
      <dc:date>2019-07-19T00:53:49Z</dc:date>
    </item>
  </channel>
</rss>

